summaryrefslogtreecommitdiff
path: root/examples/middleware/astro.config.mjs
diff options
context:
space:
mode:
authorGravatar Emanuele Stoppa <my.burning@gmail.com> 2023-05-03 17:40:47 +0100
committerGravatar GitHub <noreply@github.com> 2023-05-03 17:40:47 +0100
commit831b67cdb8250f93f66e3b171fab024652bf80f2 (patch)
treef2b32803f20b581985ca29af960cdc03835f8848 /examples/middleware/astro.config.mjs
parentad907196cb42f21d9540ae0d77aa742bf7adf030 (diff)
downloadastro-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.mjs13
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,
+ },
+});