Files
ProxMenux/AppImage/next.config.mjs

43 lines
922 B
JavaScript
Raw Normal View History

2025-09-28 19:40:23 +02:00
/** @type {import('next').NextConfig} */
const nextConfig = {
2025-09-28 23:09:31 +02:00
output: 'standalone',
trailingSlash: true,
2025-09-28 19:40:23 +02:00
eslint: {
ignoreDuringBuilds: true,
},
typescript: {
ignoreBuildErrors: true,
},
images: {
unoptimized: true,
},
2025-09-28 23:09:31 +02:00
experimental: {
esmExternals: 'loose',
},
webpack: (config, { isServer }) => {
if (!isServer) {
config.resolve.fallback = {
...config.resolve.fallback,
fs: false,
net: false,
tls: false,
};
}
return config;
},
async headers() {
return [
{
source: '/api/:path*',
headers: [
{ key: 'Access-Control-Allow-Origin', value: '*' },
{ key: 'Access-Control-Allow-Methods', value: 'GET, POST, PUT, DELETE, OPTIONS' },
{ key: 'Access-Control-Allow-Headers', value: 'Content-Type, Authorization' },
],
},
];
},
};
2025-09-28 19:40:23 +02:00
2025-09-28 23:09:31 +02:00
export default nextConfig;