-
Notifications
You must be signed in to change notification settings - Fork 1
/
next.config.js
35 lines (35 loc) · 2.05 KB
/
next.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
module.exports = {
images: {
imageSizes: [18, 36, 54, 24, 48, 72, 96, 144],
domains: [
'dl.airtable.com',
'emoji.slack-edge.com',
'cloud-lp0r5yk68.vercel.app'
]
},
async rewrites() {
return [
{
source: '/',
destination: `https://scrapbook.hackclub.com/${process.env.username}/`,
}
]
},
async redirects() {
return [
{ "source": "/attachments/:id/:id2", "destination": "https://scrapbook.hackclub.com/attachments/:id/:id2", permanent: true},
{ "source": "/:id/", "destination": "https://scrapbook.hackclub.com/:id", permanent: true},
{ "source": "/:id", "destination": "https://scrapbook.hackclub.com/:id", permanent: true},
{ "source": "/api/vercel-finished", "destination": "/api/vercel-finished", permanent: true},
{ "source": "/:id/:id2/", "destination": "https://scrapbook.hackclub.com/:id/:id2", permanent: true},
{ "source": "/:id/:id2", "destination": "https://scrapbook.hackclub.com/:id/:id2", permanent: true},
{ "source": "/:id/:id2/:id3/", "destination": "https://scrapbook.hackclub.com/:id/:id2/:id3", permanent: true},
{ "source": "/:id/:id2/:id3", "destination": "https://scrapbook.hackclub.com/:id/:id2/:id3", permanent: true},
{ "source": "/:id/:id2/:id3/:id4/", "destination": "https://scrapbook.hackclub.com/:id/:id2/:id3/:id4", permanent: true},
{ "source": "/:id/:id2/:id3/:id4", "destination": "https://scrapbook.hackclub.com/:id/:id2/:id3/:id4", permanent: true},
{ "source": "/_next/static/:id/:id2.css", "destination": "https://scrapbook.hackclub.com/_next/static/:id/:id2.css", permanent: true},
{ "source": "/_next/static/:id/:id2.js", "destination": "https://scrapbook.hackclub.com/_next/static/:id/:id2.js", permanent: true},
{ "source": "/_next/static/chunks/pages/:id2.js", "destination": "https://scrapbook.hackclub.com/_next/static/chunks/pages/:id2.js", permanent: true }
]
},
}