Fix: Corrected shit ass poopy fart cloudflare configuration (i never get it right on the first try)

This commit is contained in:
Nicholai Vogel 2026-01-14 15:53:41 -07:00
parent 6f8a974ab1
commit 2dc8a7afc6
3 changed files with 35 additions and 28 deletions

View File

@ -7,7 +7,7 @@
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"deploy": "bun run build && wrangler pages deploy dist",
"deploy": "bun run build && wrangler deploy --env production",
"pages:dev": "wrangler pages dev dist --port 8788"
},
"dependencies": {

5
worker.js Normal file
View File

@ -0,0 +1,5 @@
export default {
async fetch(request, env, ctx) {
return env.ASSETS.fetch(request);
},
};

View File

@ -1,6 +1,8 @@
name = "sylvi-git-guide"
compatibility_date = "2025-01-14"
main = "workers-site/index.js"
[site]
bucket = "./dist"
[env.production]
compatibility_date = "2025-01-14"
main = "worker.js"
assets = { directory = "./dist", binding = "ASSETS" }