Skip to content

Commit

Permalink
move to d1
Browse files Browse the repository at this point in the history
  • Loading branch information
QPixel committed Apr 3, 2024
1 parent 74155ca commit 36f25e6
Show file tree
Hide file tree
Showing 14 changed files with 72 additions and 457 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ pnpm-debug.log*

.vercel
.env*.local

.wrangler
15 changes: 12 additions & 3 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { defineConfig } from 'astro/config';
import db from "@astrojs/db";
import tailwind from "@astrojs/tailwind";
import svelte from "@astrojs/svelte";

Expand All @@ -8,8 +7,18 @@ import cloudflare from "@astrojs/cloudflare";
// https://astro.build/config
export default defineConfig({
output: "server",
integrations: [db(), tailwind({
integrations: [tailwind({
applyBaseStyles: false
}), svelte()],
adapter: cloudflare()
adapter: cloudflare({
platformProxy: {
enabled: true,
configPath: "./wrangler.toml",
}
}),
vite: {
ssr: {
external: ["node:url"]
}
}
});
17 changes: 0 additions & 17 deletions db/config.ts

This file was deleted.

11 changes: 0 additions & 11 deletions db/seed.ts

This file was deleted.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro check && astro build --remote",
"build": "astro check && astro build",
"preview": "astro preview",
"astro": "astro"
},
"dependencies": {
"@astrojs/check": "^0.5.10",
"@astrojs/cloudflare": "^10.0.2",
"@astrojs/db": "^0.9.11",
"@astrojs/svelte": "^5.3.0",
"@astrojs/tailwind": "^5.1.0",
"astro": "^4.5.14",
Expand Down
Loading

0 comments on commit 36f25e6

Please sign in to comment.