9e5fafa2b2
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
432 B
432 B
astro |
---|
minor |
Introduced a new build option for SSR, called build.excludeMiddleware
.
// astro.config.mjs
import {defineConfig} from "astro/config";
export default defineConfig({
build: {
excludeMiddleware: true
}
})
When enabled, the code that belongs to be middleware won't be imported by the final pages/entry points. The user is responsible for importing it and calling it manually.