@nadeshikon/plugin-nextjs
Version:
Run Next.js seamlessly on Netlify
21 lines (20 loc) • 427 B
JavaScript
module.exports = {
reactStrictMode: true,
onDemandEntries: {
maxInactiveAge: 1000 * 60 * 60,
},
experimental: {
appDir: true,
serverComponentsExternalPackages: ['conditional-exports-optout'],
},
rewrites: async () => {
return {
afterFiles: [
{
source: '/rewritten-to-edge-dynamic',
destination: '/edge/dynamic',
},
],
}
},
}