Skip to content

Commit c13422a

Browse files
committed
Serve Vercel preview from root
1 parent 71234f9 commit c13422a

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
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: ['/preview/(index.html)?'],
4+
matcher: ['/(index.html)?'],
55
};
66

77
// Rewrite rules shared with local server configurations

vercel.json

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

0 commit comments

Comments
 (0)