diff --git a/middleware.js b/middleware.js index 7639d9d..b3c7d55 100644 --- a/middleware.js +++ b/middleware.js @@ -3,7 +3,7 @@ import { rewriteRules } from './preview.config.cjs'; // Exports // ============================================================================= export const config = { - matcher: ['/preview/(index.html)?'], + matcher: ['/(index.html)?'], }; // Serve virtual /preview/index.html diff --git a/vercel.json b/vercel.json index e614c42..022ecf0 100644 --- a/vercel.json +++ b/vercel.json @@ -7,11 +7,7 @@ ] } ], - "redirects": [ - { "source": "/", "destination": "/preview/" } - ], "rewrites": [ - { "source": "/preview/CHANGELOG.md", "destination": "/CHANGELOG.md" }, - { "source": "/preview/:path*", "destination": "/docs/:path*" } + { "source": "/:path*", "destination": "/docs/:path*" } ] }