Skip to content

Commit

Permalink
Serve Vercel preview from root
Browse files Browse the repository at this point in the history
  • Loading branch information
jhildenbiddle committed Dec 21, 2023
1 parent 71234f9 commit c13422a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion middleware.js
@@ -1,7 +1,7 @@
// Exports
// =============================================================================
export const config = {
matcher: ['/preview/(index.html)?'],
matcher: ['/(index.html)?'],
};

// Rewrite rules shared with local server configurations
Expand Down
6 changes: 1 addition & 5 deletions vercel.json
Expand Up @@ -5,9 +5,5 @@
"headers": [{ "key": "x-robots-tag", "value": "noindex" }]
}
],
"redirects": [{ "source": "/", "destination": "/preview/" }],
"rewrites": [
{ "source": "/preview/CHANGELOG.md", "destination": "/CHANGELOG.md" },
{ "source": "/preview/:path*", "destination": "/docs/:path*" }
]
"rewrites": [{ "source": "/:path*", "destination": "/docs/:path*" }]
}

0 comments on commit c13422a

Please sign in to comment.