mirror of
https://github.com/System-End/site.git
synced 2026-04-19 15:18:18 +00:00
Migrate assetPrefix
This commit is contained in:
parent
f730dd9270
commit
fa76946788
2 changed files with 7 additions and 1 deletions
|
|
@ -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' : ''
|
||||
})
|
||||
|
|
|
|||
|
|
@ -3,6 +3,12 @@
|
|||
"env": {
|
||||
"SLACK_BOT_TOKEN": "@slack-bot-token-production-8avf"
|
||||
},
|
||||
"rewrites": [
|
||||
{
|
||||
"source": "/v3/_next/:path*",
|
||||
"destination": "/_next/:path*"
|
||||
}
|
||||
],
|
||||
"headers": [
|
||||
{
|
||||
"source": "/api/(.+)",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue