You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -17,7 +17,7 @@ Welcome to the official repository for the **Solana Colombia** website. This pla
17
17
18
18
### Prerequisites
19
19
20
-
-**Node.js:**`v18.20.8` or higher (Check `.nvmrc`)
20
+
-**Node.js:**`v22.12.0` or higher
21
21
-**npm:** Package manager included with Node.js
22
22
23
23
### Installation
@@ -44,14 +44,27 @@ To start the local development server:
44
44
npm run dev
45
45
```
46
46
47
-
> **Note:** The `dev` script automatically runs `npm run db:pull` to sync your local D1 database with the production data before starting the Astro server.
47
+
> **Note:** The `dev` script automatically runs `npm run db:pull` to sync your local D1 database with the production data before starting the Astro dev server (runs on the real Cloudflare workerd runtime).
48
+
49
+
### Deployment
50
+
51
+
Pushing to `main` triggers automatic deployment to Cloudflare Workers via GitHub Actions. The workflow requires two repository secrets:
52
+
53
+
-`CLOUDFLARE_API_TOKEN`
54
+
-`CLOUDFLARE_ACCOUNT_ID`
55
+
56
+
You can also deploy manually:
57
+
58
+
```sh
59
+
npm run deploy
60
+
```
48
61
49
62
### AI-assisted development (Claude Code)
50
63
51
64
This repo ships a set of [Claude Code hooks](docs/CLAUDE_HOOKS.md) that guard against common footguns when Claude Code is editing files or running commands:
52
65
53
66
-**Protected files:**`.env`, `wrangler.toml`, `schema.sql`, and already-applied `migrations/*.sql` cannot be edited by the AI.
54
-
-**Blocked commands:**`wrangler pages deploy`, `wrangler d1 execute --remote`, `wrangler secret put/delete`, `DROP TABLE`, and other irreversible prod operations are refused before execution.
67
+
-**Blocked commands:**`wrangler deploy`, `wrangler d1 execute --remote`, `wrangler secret put/delete`, `DROP TABLE`, and other irreversible prod operations are refused before execution.
55
68
-**Auto-format + typecheck:** every `.astro`/`.ts` edit is run through `prettier` and `astro check`.
56
69
-**Pre-PR gate:**`gh pr create` is blocked unless `astro check` and `astro build` both pass.
57
70
@@ -146,15 +159,19 @@ The site uses Cloudflare D1 for dynamic data like the Builders directory.
146
159
147
160
```text
148
161
/
162
+
├── .github/workflows/ # GitHub Actions (auto-deploy to Workers)
0 commit comments