diff --git a/next.config.js b/next.config.js index 1f5c9109..4ac0f16e 100755 --- a/next.config.js +++ b/next.config.js @@ -3,5 +3,5 @@ const withMDX = require('@next/mdx')({ extension: /\.mdx?$/ }) module.exports = withMDX({ experimental: { trailingSlash: true }, pageExtensions: ['js', 'jsx', 'mdx'], - assetPrefix: isProd ? 'https://v3.hackclub.com' : '' + assetPrefix: isProd ? '/v3' : '' }) diff --git a/vercel.json b/vercel.json index cacdf952..9deb45d1 100644 --- a/vercel.json +++ b/vercel.json @@ -3,6 +3,12 @@ "env": { "SLACK_BOT_TOKEN": "@slack-bot-token-production-8avf" }, + "rewrites": [ + { + "source": "/v3/_next/:path*", + "destination": "/_next/:path*" + } + ], "headers": [ { "source": "/api/(.+)",