From 3ccf13739a46d6e299c26ac45bfe8850211d9f14 Mon Sep 17 00:00:00 2001 From: v0 Date: Wed, 22 Oct 2025 05:59:06 +0000 Subject: [PATCH] fix: adapt build config for Cloudflare Pages Remove unsupported build section and Next.js files; add _routes.json for static site. #VERCEL_SKIP Co-authored-by: Jeff Emmett <46964190+Jeff-Emmett@users.noreply.github.com> --- .node-version | 1 - .npmrc | 2 -- public/_routes.json => _routes.json | 0 next.config.mjs | 5 +---- wrangler.toml | 5 +---- 5 files changed, 2 insertions(+), 11 deletions(-) delete mode 100644 .node-version delete mode 100644 .npmrc rename public/_routes.json => _routes.json (100%) diff --git a/.node-version b/.node-version deleted file mode 100644 index 3c03207..0000000 --- a/.node-version +++ /dev/null @@ -1 +0,0 @@ -18 diff --git a/.npmrc b/.npmrc deleted file mode 100644 index a269478..0000000 --- a/.npmrc +++ /dev/null @@ -1,2 +0,0 @@ -legacy-peer-deps=true -auto-install-peers=true diff --git a/public/_routes.json b/_routes.json similarity index 100% rename from public/_routes.json rename to _routes.json diff --git a/next.config.mjs b/next.config.mjs index 7b054f2..2033beb 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -9,9 +9,6 @@ const nextConfig = { images: { unoptimized: true, }, - output: 'export', - trailingSlash: true, - distDir: 'out', } -export default nextConfig +export default nextConfig \ No newline at end of file diff --git a/wrangler.toml b/wrangler.toml index 6b8b1b2..152a2cf 100644 --- a/wrangler.toml +++ b/wrangler.toml @@ -1,7 +1,4 @@ name = "ebb-n-flow-website" compatibility_date = "2024-01-01" -pages_build_output_dir = "out" - -[build] -command = "npm run build" +pages_build_output_dir = "."