-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.ts
More file actions
29 lines (27 loc) · 923 Bytes
/
next.config.ts
File metadata and controls
29 lines (27 loc) · 923 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
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
/* config options here */
async rewrites() {
return [
// Rewrite for 2023 Archive
{
source: "/2023",
destination: "https://your-2023-deployment-url.com", // Replace with the actual deployment URL of the 2023 site
},
{
source: "/2023/:path*",
destination: "https://your-2023-deployment-url.com/:path*", // Replace with the actual deployment URL of the 2023 site
},
// Rewrite for 2024 Archive
{
source: "/2024",
destination: "https://your-2024-deployment-url.com", // Replace with the actual deployment URL of the 2024 site
},
{
source: "/2024/:path*",
destination: "https://your-2024-deployment-url.com/:path*", // Replace with the actual deployment URL of the 2024 site
},
];
},
};
export default nextConfig;