Branchwell

Skillfarm / website / next.config.js

1const pages = process.env.SKILLFARM_CLOUDFLARE_BUILD === '1';
2
3/** @type {import('next').NextConfig} */
4const 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
15module.exports = nextConfig;