We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b7ee0c commit 4a02219Copy full SHA for 4a02219
middleware.js
@@ -3,7 +3,7 @@ import { rewriteRules } from './preview.config.cjs';
3
// Exports
4
// =============================================================================
5
export const config = {
6
- matcher: ['/(index.html)?'],
+ matcher: ['/preview/(index.html)?'],
7
};
8
9
// Serve virtual /preview/index.html
vercel.json
@@ -7,7 +7,11 @@
]
}
],
10
+ "redirects": [
11
+ { "source": "/", "destination": "/preview/" }
12
+ ],
13
"rewrites": [
- { "source": "/:path*", "destination": "/docs/:path*" }
14
+ { "source": "/preview/CHANGELOG.md", "destination": "/CHANGELOG.md" },
15
+ { "source": "/preview/:path*", "destination": "/docs/:path*" }
16
17
0 commit comments