-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.mjs
More file actions
35 lines (34 loc) · 978 Bytes
/
Copy pathnext.config.mjs
File metadata and controls
35 lines (34 loc) · 978 Bytes
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
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
globalNotFound: true,
},
eslint: {
ignoreDuringBuilds: true,
},
async redirects() {
return [
{
// The Vinyl Digitizer tool was renamed to RipTag. Preserve the old
// route (and any existing bookmarks/links) with a permanent redirect.
source: '/vinyl-digitizer',
destination: '/riptag',
permanent: true,
},
{
// The Discord2Playlist bot was renamed to Trawl. Keep already-issued
// magic links working: /discord2playlist/results/:id?t=… → /trawl/…
// (Next preserves the query string, so the token survives the redirect).
source: '/discord2playlist/:path*',
destination: '/trawl/:path*',
permanent: true,
},
{
source: '/discord2playlist',
destination: '/trawl',
permanent: true,
},
];
},
};
export default nextConfig;