const pages = process.env.SKILLFARM_CLOUDFLARE_BUILD === '1'; /** @type {import('next').NextConfig} */ const nextConfig = { images: { unoptimized: true, }, ...(pages ? { output: 'export' } : { async redirects() { return [{ source: '/waitlist', destination: '/', permanent: true }]; }, }), }; module.exports = nextConfig;