diff --git a/with-astro/astro.config.mjs b/with-astro/astro.config.mjs index 8676acb..4a12efd 100644 --- a/with-astro/astro.config.mjs +++ b/with-astro/astro.config.mjs @@ -1,7 +1,10 @@ // @ts-check import { defineConfig } from "astro/config"; +import deno from "@deno/astro-adapter"; + // https://astro.build/config export default defineConfig({ output: "server", + adapter: deno(), }); diff --git a/with-astro/data/dinosaurs.json b/with-astro/data/dinosaurs.json index cc58f7f..e8e4b75 100644 --- a/with-astro/data/dinosaurs.json +++ b/with-astro/data/dinosaurs.json @@ -1,6 +1,6 @@ [ { - "name": "Aardonyx", + "name": "FOO", "description": "An early stage in the evolution of sauropods." }, { diff --git a/with-astro/package.json b/with-astro/package.json index 26fa444..092ed61 100644 --- a/with-astro/package.json +++ b/with-astro/package.json @@ -6,13 +6,14 @@ "dev": "astro dev", "start": "astro dev", "build": "astro check && astro build", - "preview": "astro preview", - "astro": "astro" + "astro": "astro", + "preview" : "deno run -A dist/server/entry.mjs" }, "dependencies": { "@astrojs/node": "^8.3.4", "astro": "^4.16.7", "@astrojs/check": "^0.9.4", - "typescript": "^5.6.3" + "typescript": "^5.6.3", + "@deno/astro-adapter": "^0.1.4" } }