Skip to content

Commit 4a02219

Browse files
committed
Revert "Server preview from root"
This reverts commit 9b7ee0c.
1 parent 9b7ee0c commit 4a02219

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

middleware.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { rewriteRules } from './preview.config.cjs';
33
// Exports
44
// =============================================================================
55
export const config = {
6-
matcher: ['/(index.html)?'],
6+
matcher: ['/preview/(index.html)?'],
77
};
88

99
// Serve virtual /preview/index.html

vercel.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77
]
88
}
99
],
10+
"redirects": [
11+
{ "source": "/", "destination": "/preview/" }
12+
],
1013
"rewrites": [
11-
{ "source": "/:path*", "destination": "/docs/:path*" }
14+
{ "source": "/preview/CHANGELOG.md", "destination": "/CHANGELOG.md" },
15+
{ "source": "/preview/:path*", "destination": "/docs/:path*" }
1216
]
1317
}

0 commit comments

Comments
 (0)