()
| 7 | import { redirects, rewrites } from './next.rewrites.mjs'; |
| 8 | |
| 9 | const getDeploymentId = async () => { |
| 10 | if (OPEN_NEXT_CLOUDFLARE) { |
| 11 | // If we're building for the Cloudflare deployment we want to set |
| 12 | // an appropriate deploymentId (needed for skew protection) |
| 13 | const openNextAdapter = await import('@opennextjs/cloudflare'); |
| 14 | |
| 15 | return openNextAdapter.getDeploymentId(); |
| 16 | } |
| 17 | |
| 18 | return undefined; |
| 19 | }; |
| 20 | |
| 21 | /** @type {import('next').NextConfig} */ |
| 22 | const nextConfig = { |