Skip to content

Commit

Permalink
Revert "Server preview from root"
Browse files Browse the repository at this point in the history
This reverts commit 9b7ee0c.
  • Loading branch information
jhildenbiddle committed Dec 21, 2023
1 parent 9b7ee0c commit 4a02219
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { rewriteRules } from './preview.config.cjs';
// Exports
// =============================================================================
export const config = {
matcher: ['/(index.html)?'],
matcher: ['/preview/(index.html)?'],
};

// Serve virtual /preview/index.html
Expand Down
6 changes: 5 additions & 1 deletion vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
]
}
],
"redirects": [
{ "source": "/", "destination": "/preview/" }
],
"rewrites": [
{ "source": "/:path*", "destination": "/docs/:path*" }
{ "source": "/preview/CHANGELOG.md", "destination": "/CHANGELOG.md" },
{ "source": "/preview/:path*", "destination": "/docs/:path*" }
]
}

0 comments on commit 4a02219

Please sign in to comment.