- Статья: заголовок + ссылка (truncate), title в URL, articleTitle в Message - Локализация Sources, Research Progress, Answer, шагов, formingAnswer - Подсказки: промпт без жёсткого примера, разнообразие, label 'Что ещё спросить' - embeddedTranslations, countryToLocale, locale инструкция для LLM Co-authored-by: Cursor <cursoragent@cursor.com>
37 lines
1.0 KiB
JavaScript
37 lines
1.0 KiB
JavaScript
import path from 'node:path';
|
|
import { fileURLToPath } from 'node:url';
|
|
import { createRequire } from 'node:module';
|
|
|
|
// Загружаем .env из корня монорепо (apps/frontend -> корень)
|
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
const rootDir = path.resolve(__dirname, '..', '..');
|
|
const require = createRequire(import.meta.url);
|
|
require('dotenv').config({ path: path.join(rootDir, '.env') });
|
|
|
|
import pkg from './package.json' with { type: 'json' };
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
output: 'standalone',
|
|
images: {
|
|
remotePatterns: [
|
|
{
|
|
hostname: 's2.googleusercontent.com',
|
|
},
|
|
],
|
|
},
|
|
serverExternalPackages: ['pdf-parse'],
|
|
outputFileTracingIncludes: {
|
|
'/api/**': [
|
|
'./node_modules/@napi-rs/canvas/**',
|
|
'./node_modules/@napi-rs/canvas-linux-x64-gnu/**',
|
|
'./node_modules/@napi-rs/canvas-linux-x64-musl/**',
|
|
],
|
|
},
|
|
env: {
|
|
NEXT_PUBLIC_VERSION: pkg.version,
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|