mirror of
https://github.com/umami-software/umami.git
synced 2026-02-18 11:35:37 +01:00
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:
parent
60eaaaff60
commit
1c4c97e02a
3 changed files with 98 additions and 2 deletions
|
|
@ -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,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue