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

@ -1,26 +1,26 @@
{
"name": "sylvi's-git-guide",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"deploy": "bun run build && wrangler pages deploy dist",
"pages:dev": "wrangler pages dev dist --port 8788"
},
"dependencies": {
"react": "^19.2.3",
"lucide-react": "^0.562.0",
"react-dom": "^19.2.3",
"gsap": "^3.14.2"
},
"devDependencies": {
"@types/node": "^22.14.0",
"@vitejs/plugin-react": "^5.0.0",
"typescript": "~5.8.2",
"vite": "^6.2.0",
"wrangler": "^4.59.1"
}
"name": "sylvi's-git-guide",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"deploy": "bun run build && wrangler deploy --env production",
"pages:dev": "wrangler pages dev dist --port 8788"
},
"dependencies": {
"react": "^19.2.3",
"lucide-react": "^0.562.0",
"react-dom": "^19.2.3",
"gsap": "^3.14.2"
},
"devDependencies": {
"@types/node": "^22.14.0",
"@vitejs/plugin-react": "^5.0.0",
"typescript": "~5.8.2",
"vite": "^6.2.0",
"wrangler": "^4.59.1"
}
}

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" }