fix: correct Cloudflare Pages build settings for Next.js static export

Update build command and output directory to generate `out` folder.

#VERCEL_SKIP

Co-authored-by: Jeff Emmett <46964190+Jeff-Emmett@users.noreply.github.com>
This commit is contained in:
v0 2025-10-22 05:36:52 +00:00
parent 1af5d7c2cc
commit c9db97b731
4 changed files with 16 additions and 0 deletions

1
.node-version Normal file
View File

@ -0,0 +1 @@
18

View File

@ -9,6 +9,9 @@ const nextConfig = {
images: {
unoptimized: true,
},
output: 'export',
trailingSlash: true,
distDir: 'out',
}
export default nextConfig

5
public/_routes.json Normal file
View File

@ -0,0 +1,5 @@
{
"version": 1,
"include": ["/*"],
"exclude": []
}

7
wrangler.toml Normal file
View File

@ -0,0 +1,7 @@
name = "ebb-n-flow-website"
compatibility_date = "2024-01-01"
pages_build_output_dir = "out"
[build]
command = "npm run build"