Skip to content

Commit 633e3d4

Browse files
committed
Change templates path from /templates to /developers/templates
1 parent 2390c30 commit 633e3d4

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

apps/templates/next.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const nextConfig: NextConfig = {
77
// Use basePath only when env var is set (for proxy integration)
88
// Without env var, templates serves at root for standalone subdomain
99
...(process.env.NEXT_PUBLIC_USE_BASE_PATH === "true" && {
10-
basePath: "/templates",
10+
basePath: "/developers/templates",
1111
}),
1212

1313
webpack(config) {

apps/web/rewrites-redirects.mjs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,16 @@ export default {
1414
locale: false,
1515
},
1616
{
17-
source: "/templates",
18-
destination: "https://solana-com-templates.vercel.app/templates",
17+
source: "/developers/templates",
18+
destination:
19+
"https://solana-com-templates.vercel.app/developers/templates",
1920
locale: false,
2021
},
2122
// everything underneath
2223
{
23-
source: "/templates/:path*",
24-
destination: "https://solana-com-templates.vercel.app/templates/:path*",
24+
source: "/developers/templates/:path*",
25+
destination:
26+
"https://solana-com-templates.vercel.app/developers/templates/:path*",
2527
locale: false,
2628
},
2729
],

apps/web/src/middleware.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import { locales } from "@workspace/i18n/config";
66
const handleI18nRouting = createMiddleware(routing);
77

88
export default async function middleware(req: NextRequest) {
9-
// Skip i18n for /breakpoint/* and /templates/* paths
9+
// Skip i18n for /breakpoint/* and /developers/templates/* paths
1010
if (
1111
req.nextUrl.pathname.startsWith("/breakpoint") ||
12-
req.nextUrl.pathname.startsWith("/templates")
12+
req.nextUrl.pathname.startsWith("/developers/templates")
1313
) {
1414
return NextResponse.next();
1515
}
@@ -55,8 +55,6 @@ export default async function middleware(req: NextRequest) {
5555
}
5656

5757
export const config = {
58-
matcher: [
59-
"/((?!api|opengraph|_next|_vercel|breakpoint|templates|.*\\..*).*)",
60-
],
58+
matcher: ["/((?!api|opengraph|_next|_vercel|breakpoint|.*\\..*).*)"],
6159
runtime: "nodejs",
6260
};

0 commit comments

Comments
 (0)