Skip to content

Commit 0c2d237

Browse files
jhildenbiddlesy-records
authored andcommitted
Revert "Serve Vercel preview from root"
This reverts commit c13422a.
1 parent 8d06856 commit 0c2d237

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

middleware.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Exports
22
// =============================================================================
33
export const config = {
4-
matcher: ['/(index.html)?'],
4+
matcher: ['/preview/(index.html)?'],
55
};
66

77
// Rewrite rules shared with local server configurations

vercel.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,9 @@
55
"headers": [{ "key": "x-robots-tag", "value": "noindex" }]
66
}
77
],
8-
"rewrites": [{ "source": "/:path*", "destination": "/docs/:path*" }]
8+
"redirects": [{ "source": "/", "destination": "/preview/" }],
9+
"rewrites": [
10+
{ "source": "/preview/CHANGELOG.md", "destination": "/CHANGELOG.md" },
11+
{ "source": "/preview/:path*", "destination": "/docs/:path*" }
12+
]
913
}

0 commit comments

Comments
 (0)