diff options
author | 2023-05-03 17:40:47 +0100 | |
---|---|---|
committer | 2023-05-03 17:40:47 +0100 | |
commit | 831b67cdb8250f93f66e3b171fab024652bf80f2 (patch) | |
tree | f2b32803f20b581985ca29af960cdc03835f8848 /examples/middleware/astro.config.mjs | |
parent | ad907196cb42f21d9540ae0d77aa742bf7adf030 (diff) | |
download | astro-831b67cdb8250f93f66e3b171fab024652bf80f2.tar.gz astro-831b67cdb8250f93f66e3b171fab024652bf80f2.tar.zst astro-831b67cdb8250f93f66e3b171fab024652bf80f2.zip |
feat(astro): experimental middleware (#6721)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Diffstat (limited to 'examples/middleware/astro.config.mjs')
-rw-r--r-- | examples/middleware/astro.config.mjs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/middleware/astro.config.mjs b/examples/middleware/astro.config.mjs new file mode 100644 index 000000000..1d4662423 --- /dev/null +++ b/examples/middleware/astro.config.mjs @@ -0,0 +1,13 @@ +import { defineConfig } from 'astro/config'; +import node from '@astrojs/node'; + +// https://astro.build/config +export default defineConfig({ + output: 'server', + adapter: node({ + mode: 'standalone', + }), + experimental: { + middleware: true, + }, +}); |