Update Next.js configuration to conditionally enable standalone output on non-Windows platforms. Add package manager version to package.json and introduce new rules for code review and development standards in next.mdc.

This commit is contained in:
Robert Hajdu 2025-08-09 19:31:55 +02:00
parent 60eaaaff60
commit 1c4c97e02a
3 changed files with 98 additions and 2 deletions

View file

@ -176,6 +176,10 @@ if (cloudMode && cloudUrl) {
});
}
// Disable standalone output on Windows to avoid symlink errors during build.
// Enable by setting NEXT_STANDALONE=true when needed (e.g., Docker/Linux deploys).
const enableStandaloneOutput = process.platform !== 'win32' && (process.env.NEXT_STANDALONE !== 'false');
/** @type {import('next').NextConfig} */
export default {
reactStrictMode: false,
@ -187,7 +191,7 @@ export default {
defaultLocale,
},
basePath,
output: 'standalone',
output: enableStandaloneOutput ? 'standalone' : undefined,
eslint: {
ignoreDuringBuilds: true,
},