Skip to content

Commit

Permalink
switch to deno
Browse files Browse the repository at this point in the history
  • Loading branch information
dcschmid committed Aug 20, 2024
1 parent 5505825 commit 490fe2d
Show file tree
Hide file tree
Showing 4 changed files with 235 additions and 5 deletions.
6 changes: 2 additions & 4 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
import { defineConfig } from "astro/config";
import icon from "astro-icon";
import playformCompress from "@playform/compress";
import netlify from "@astrojs/netlify";
import deno from "@astrojs/deno";

import db from "@astrojs/db";

// https://astro.build/config
export default defineConfig({
output: "server",
integrations: [icon(), playformCompress(), db()],
adapter: netlify({
edgeMiddleware: true,
}),
adapter: deno(),
vite: {
optimizeDeps: {
exclude: ["astro:db"],
Expand Down
80 changes: 80 additions & 0 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
"dev": "astro dev",
"start": "astro dev",
"build": "astro check && astro build --remote",
"preview": "astro preview",
"preview": "deno run --allow-net --allow-read --allow-env ./dist/server/entry.mjs",
"astro": "astro"
},
"dependencies": {
"@astrojs/check": "^0.9.3",
"@astrojs/db": "^0.13.2",
"@astrojs/deno": "^5.0.1",
"@astrojs/netlify": "^5.5.1",
"@astropub/flow": "^0.4.0",
"@playform/compress": "^0.1.1",
Expand Down
Loading

0 comments on commit 490fe2d

Please sign in to comment.