From 53027aa3b69f580712a6299913228edcc783f46d Mon Sep 17 00:00:00 2001 From: VibeKit Migration Agent Date: Sun, 6 Jul 2025 00:46:22 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20Fresh=20migration=20to=20Cloudfl?= =?UTF-8?q?are=20Pages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Created/updated next.config.js for Cloudflare compatibility Created wrangler.toml for Cloudflare Pages --- next.config.js | 11 +++++++++-- wrangler.toml | 6 ++++++ 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 wrangler.toml diff --git a/next.config.js b/next.config.js index 3dd7ef1..cf58013 100644 --- a/next.config.js +++ b/next.config.js @@ -1,4 +1,11 @@ /** @type {import('next').NextConfig} */ -module.exports = { - reactStrictMode: true, +const nextConfig = { + output: 'export', + trailingSlash: true, + distDir: 'dist', + images: { + unoptimized: true, + }, }; + +module.exports = nextConfig; \ No newline at end of file diff --git a/wrangler.toml b/wrangler.toml new file mode 100644 index 0000000..357423b --- /dev/null +++ b/wrangler.toml @@ -0,0 +1,6 @@ +name = "nextjs-migration" +compatibility_date = "2023-05-18" + +[build] +command = "npm run build" +publish = "dist" \ No newline at end of file