File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff 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 ] ,
Original file line number Diff line number Diff line change @@ -6,10 +6,10 @@ import { locales } from "@workspace/i18n/config";
66const handleI18nRouting = createMiddleware ( routing ) ;
77
88export 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
5757export const config = {
58- matcher : [
59- "/((?!api|opengraph|_next|_vercel|breakpoint|templates|.*\\..*).*)" ,
60- ] ,
58+ matcher : [ "/((?!api|opengraph|_next|_vercel|breakpoint|.*\\..*).*)" ] ,
6159 runtime : "nodejs" ,
6260} ;
You can’t perform that action at this time.
0 commit comments