flatten app to repo root and update docker deployment for single-stack runtime
This commit is contained in:
25
next.config.js
Normal file
25
next.config.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
reactStrictMode: true,
|
||||
output: 'standalone',
|
||||
turbopack: {
|
||||
root: __dirname
|
||||
},
|
||||
env: {
|
||||
NEXT_PUBLIC_API_URL: process.env.NEXT_PUBLIC_API_URL || ''
|
||||
},
|
||||
async headers() {
|
||||
return [
|
||||
{
|
||||
source: '/auth/:path*',
|
||||
headers: [
|
||||
{ key: 'Cache-Control', value: 'no-store, no-cache, max-age=0, must-revalidate' },
|
||||
{ key: 'Pragma', value: 'no-cache' },
|
||||
{ key: 'Expires', value: '0' }
|
||||
]
|
||||
}
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = nextConfig;
|
||||
Reference in New Issue
Block a user