Skillfarm / website / next.config.js
| 1 | const pages = process.env.SKILLFARM_CLOUDFLARE_BUILD === '1'; |
| 2 | |
| 3 | /** @type {import('next').NextConfig} */ |
| 4 | const nextConfig = { |
| 5 | images: { |
| 6 | unoptimized: true, |
| 7 | }, |
| 8 | ...(pages ? { output: 'export' } : { |
| 9 | async redirects() { |
| 10 | return [{ source: '/waitlist', destination: '/', permanent: true }]; |
| 11 | }, |
| 12 | }), |
| 13 | }; |
| 14 | |
| 15 | module.exports = nextConfig; |