From 9b7446cd051cdcea7ed8fd96d35e190625e861f9 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Thu, 10 Jul 2025 13:16:57 +0200 Subject: Complete server api --- astro.config.mjs | 1 + wrangler.jsonc | 1 + 2 files changed, 2 insertions(+) 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" -- cgit v1.3.1