diff --git a/next.config.js b/next.config.js index b455ec6..02dc526 100644 --- a/next.config.js +++ b/next.config.js @@ -9,6 +9,14 @@ const nextConfig = { basePath: process.env.NEXT_PUBLIC_BASE_PATH || '', // Default to empty if not defined // You can also use assetPrefix to set the base path for static assets assetPrefix: process.env.NEXT_PUBLIC_BASE_PATH || '', + async rewrites() { + return [ + { + source: '/:path*', + destination: '/', + }, + ]; + }, }; module.exports = nextConfig;