uchill/excalidraw-server/next.config.js

18 lines
604 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/** @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;