Skip to content

Commit

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

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

0 comments on commit 15a4848

Please sign in to comment.