-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.ts
More file actions
43 lines (41 loc) · 1008 Bytes
/
next.config.ts
File metadata and controls
43 lines (41 loc) · 1008 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
36
37
38
39
40
41
42
43
import type { NextConfig } from "next";
// NOTE:
// Host-conditional rewrites for the titles subdomain of blowup.digital
// These rewrites map:
// - titles.blowup.digital/ → /titles
// - titles.blowup.digital/:path* → /titles/:path*
const nextConfig: NextConfig = {
async rewrites() {
return [
{
source: "/",
has: [
{ type: "host", value: "titles.blowup.digital" },
],
destination: "/titles",
},
{
source: "/:path*",
has: [
{ type: "host", value: "titles.blowup.digital" },
],
destination: "/titles/:path*",
},
{
source: "/",
has: [
{ type: "host", value: "tricks.blowup.digital" },
],
destination: "/tricks",
},
{
source: "/:path*",
has: [
{ type: "host", value: "tricks.blowup.digital" },
],
destination: "/tricks/:path*",
},
];
},
};
export default nextConfig;