From 8a67b58cd5350eb9ba948125f46e8a7d1fe1dfab Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Wed, 12 Feb 2025 14:56:47 +0000 Subject: [PATCH] fix: update Netlify and Next.js config for proper static export Co-Authored-By: G --- netlify.toml | 5 +++++ next.config.js | 1 + 2 files changed, 6 insertions(+) diff --git a/netlify.toml b/netlify.toml index 25ac06a..8949e1f 100644 --- a/netlify.toml +++ b/netlify.toml @@ -18,6 +18,11 @@ to = "/.netlify/functions/api/:splat" status = 200 +[[redirects]] + from = "/*" + to = "/404.html" + status = 404 + [[redirects]] from = "/*" to = "/index.html" diff --git a/next.config.js b/next.config.js index 68a6ca5..1b3ecef 100644 --- a/next.config.js +++ b/next.config.js @@ -8,6 +8,7 @@ const nextConfig = { config.resolve.fallback = { fs: false, path: false } return config }, + trailingSlash: true, }; module.exports = nextConfig;