Skip to content

Commit 9d23a1c

Browse files
committed
feat: Add Boggle
1 parent a359b9d commit 9d23a1c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

next.config.mjs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,24 @@
11
/** @type {import('next').NextConfig} */
22
const nextConfig = {
33
reactStrictMode: false,
4+
async rewrites() {
5+
return [
6+
// For Next.js multi-zone deployment, catch our current paths before redirecting for zones.
7+
{
8+
source: "/:path*",
9+
destination: `/:path*`,
10+
},
11+
{
12+
source: "/boggle",
13+
// Boggle is hosted on a custom domain, so Vercel can display it to search engines.
14+
destination: "https://boggle.plett.fun/boggle",
15+
},
16+
{
17+
source: "/boggle/:path*",
18+
destination: "https://boggle.plett.fun/boggle/:path*",
19+
},
20+
];
21+
},
422
};
523

624
export default nextConfig;

0 commit comments

Comments
 (0)