18 lines
604 B
JavaScript
18 lines
604 B
JavaScript
/** @type {import('next').NextConfig} */
|
||
const nextConfig = {
|
||
// Минимальная конфигурация для Excalidraw
|
||
reactStrictMode: false,
|
||
|
||
// Прокси nginx: app.uchill.online/excalidraw/ → 3004. Без basePath запросы к /_next/ уходили бы на основной фронт.
|
||
basePath: process.env.NEXT_PUBLIC_BASE_PATH ?? '',
|
||
|
||
// Не редиректить /excalidraw/ ↔ /excalidraw (иначе цикл с nginx/iframe)
|
||
trailingSlash: true,
|
||
|
||
// Отключаем SSR полностью
|
||
output: 'standalone',
|
||
};
|
||
|
||
module.exports = nextConfig;
|
||
|