feat: use app router for site home

This commit is contained in:
DIYgod
2023-05-07 17:12:17 +01:00
parent d3f83e3090
commit 5d9194787b
26 changed files with 422 additions and 180 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ export default async function middleware(req: NextRequest) {
if (tenant?.subdomain) {
const url = req.nextUrl.clone()
url.pathname = `/_site/${tenant?.subdomain}${url.pathname}`
url.pathname = `/site/${tenant?.subdomain}${url.pathname}`
return NextResponse.rewrite(url)
}