-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
50 lines (43 loc) · 1.07 KB
/
next.config.js
File metadata and controls
50 lines (43 loc) · 1.07 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
/** @type {import('next').NextConfig} */
const nextConfig = {
// Use standalone output for Docker production builds
// This creates a minimal production bundle with all dependencies
output: 'standalone',
// Allow dev access from any local network IP (mobile testing)
// Format: hostname only (not full URL), supports wildcards
allowedDevOrigins: ['192.168.*.*'],
// Environment
env: {
NEXT_PUBLIC_API_BASE_URL: process.env.NEXT_PUBLIC_API_BASE_URL,
},
// Images
images: {
unoptimized: true, // Required for static export
remotePatterns: [
{
protocol: 'http',
hostname: 'localhost',
},
{
protocol: 'http',
hostname: 'api',
},
{
protocol: 'https',
hostname: 'api.lsp.menu',
},
{
protocol: 'https',
hostname: '**.lsp.menu',
},
],
},
// Performance optimizations
compress: true,
poweredByHeader: false,
// Strict mode
reactStrictMode: true,
// Trailing slash for consistency
trailingSlash: true,
};
module.exports = nextConfig;