summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2025-07-10 13:16:57 +0200
committerYuval Adam <_@yuv.al>2025-07-10 13:16:57 +0200
commit9b7446cd051cdcea7ed8fd96d35e190625e861f9 (patch)
tree2a8d9c6b8083def29a7b5cc21c1f3665d1b1353e
parentfe46676b321f93c29207bfb19bee6a6aaf4d178a (diff)
Complete server api
-rw-r--r--astro.config.mjs1
-rw-r--r--wrangler.jsonc1
2 files changed, 2 insertions, 0 deletions
diff --git a/astro.config.mjs b/astro.config.mjs
index 8293fb2..fc681bf 100644
--- a/astro.config.mjs
+++ b/astro.config.mjs
@@ -5,5 +5,6 @@ import cloudflare from '@astrojs/cloudflare';
// https://astro.build/config
export default defineConfig({
+ output: 'server',
adapter: cloudflare()
}); \ No newline at end of file
diff --git a/wrangler.jsonc b/wrangler.jsonc
index 9b78a09..f286f23 100644
--- a/wrangler.jsonc
+++ b/wrangler.jsonc
@@ -1,5 +1,6 @@
{
"name": "helloastrocf",
+ "main": "./dist/_worker.js/index.js",
"compatibility_date": "2025-07-10",
"compatibility_flags": [
"nodejs_compat"