summaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2025-06-27 10:10:56 +0200
committerYuval Adam <_@yuv.al>2025-06-27 10:10:56 +0200
commit2ad5ce929f6d69c9aaca71573744b30e02ab8bed (patch)
tree078cd3b8a968ebfd99e86492abb9564f183ec21a /package.json
parent0282fb367ecfd3864cf94c27a44961a61e2ff6f2 (diff)
Add cloudflare basic impl
Diffstat (limited to 'package.json')
-rw-r--r--package.json11
1 files changed, 9 insertions, 2 deletions
diff --git a/package.json b/package.json
index af86bf6..af4c89c 100644
--- a/package.json
+++ b/package.json
@@ -4,11 +4,17 @@
"version": "0.0.1",
"scripts": {
"dev": "astro dev",
+ "dev:wrangler": "wrangler pages dev --compatibility-date=2024-06-27 --d1=DB=astro-base-db -- astro dev",
"build": "astro build",
- "preview": "astro preview",
+ "preview": "wrangler pages dev dist",
+ "deploy": "wrangler pages deploy dist",
+ "db:create": "wrangler d1 create astro-base-db",
+ "db:init": "wrangler d1 execute astro-base-db --file=./schema.sql",
+ "db:migrate": "wrangler d1 execute astro-base-db --file=./schema.sql --local",
"astro": "astro"
},
"dependencies": {
+ "@astrojs/cloudflare": "^12.6.0",
"@astrojs/react": "^4.3.0",
"@tailwindcss/vite": "^4.1.7",
"@types/react": "^19.1.5",
@@ -16,7 +22,8 @@
"astro": "^5.10.1",
"react": "^19.1.0",
"react-dom": "^19.1.0",
- "tailwindcss": "^4.1.7"
+ "tailwindcss": "^4.1.7",
+ "wrangler": "^4.22.0"
},
"devDependencies": {
"@tailwindcss/typography": "^0.5.16"