-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
37 lines (32 loc) · 1004 Bytes
/
next.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/** @type {import('next').NextConfig} */
module.exports = {
reactStrictMode: true,
// Disable static page generation for pages that use authentication
output: 'standalone',
// Additional headers to ensure cookies are handled correctly
async headers() {
return [
{
source: '/api/auth/:path*',
headers: [
{
key: 'Cache-Control',
value: 'no-store, max-age=0',
},
],
},
]
},
// TODO: Remove, .env s should be taking care of this already
// Ensure environment variables are passed correctly
env: {
// Auth URLs
AUTH_URL: process.env.NEXT_PUBLIC_AUTH_URL || 'http://localhost',
BACKEND_URL: process.env.NEXT_PUBLIC_BACKEND_URL || 'http://localhost',
// WebSocket URL
WS_URL: process.env.NEXT_PUBLIC_WS_URL || 'ws://localhost:80/ws',
// Debug settings
DEBUG: process.env.DEBUG || 'false',
VERBOSE_LOGGING: process.env.VERBOSE_LOGGING || 'false',
},
};