Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -166,5 +166,9 @@ export default defineConfig({
}),
docsMarkdownIntegration(),
],
adapter: vercel(),
// Deploy Astro middleware as a Vercel Edge Function so it runs at
// request time for ALL pages, including pre-rendered static pages.
// Without this, middleware only runs at build time for static pages
// and content negotiation (Accept: text/markdown) doesn't work.
adapter: vercel({ middlewareMode: 'edge' }),
});
Loading