mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: init install mode
This commit is contained in:
parent
687f7b2116
commit
056365dac9
21 changed files with 1230 additions and 6 deletions
|
|
@ -28,6 +28,11 @@ export default function middleware(req: NextRequest) {
|
|||
return NextResponse.rewrite(new URL(pathname, req.url));
|
||||
}
|
||||
|
||||
// Install Page
|
||||
if (pathname.startsWith("/install")) {
|
||||
return NextResponse.rewrite(new URL(pathname, req.url));
|
||||
}
|
||||
|
||||
// Dynamic Pages Editor
|
||||
if (pathname.match(/^\/course\/[^/]+\/activity\/[^/]+\/edit$/)) {
|
||||
return NextResponse.rewrite(new URL(`/editor${pathname}`, req.url));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue