Files
Neon-Desk/next.config.js

35 lines
954 B
JavaScript

const { withWorkflow } = require('workflow/next');
const skipBuildTypecheck = process.env.SKIP_NEXT_TYPECHECK_ON_BUILD === 'true';
const buildCpus = Number.parseInt(process.env.NEXT_BUILD_CPUS || '', 10);
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
output: 'standalone',
serverExternalPackages: ['bun:sqlite'],
typescript: {
ignoreBuildErrors: skipBuildTypecheck
},
turbopack: {
root: __dirname
},
experimental: buildCpus > 0 ? { cpus: buildCpus } : undefined,
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 = withWorkflow(nextConfig);