Migrate assetPrefix

This commit is contained in:
Lachlan Campbell 2020-06-30 21:02:11 +00:00
parent f730dd9270
commit fa76946788
2 changed files with 7 additions and 1 deletions

View file

@ -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' : ''
})

View file

@ -3,6 +3,12 @@
"env": {
"SLACK_BOT_TOKEN": "@slack-bot-token-production-8avf"
},
"rewrites": [
{
"source": "/v3/_next/:path*",
"destination": "/_next/:path*"
}
],
"headers": [
{
"source": "/api/(.+)",