this repo has no description
10
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(deploy): run deno install before vite build for clean CI/Deno Deploy

Without node_modules, vite is not on PATH and the build fails with
'vite: command not found'. deno task build now installs deps first.

Made-with: Cursor

+5 -3
+4 -2
README.md
··· 37 37 deno task start 38 38 ``` 39 39 40 - `start` serves the app from `_fresh/server.js` (created by `build`). 40 + `build` runs `deno install` then `vite build` so a clean clone (and Deno Deploy) 41 + gets `node_modules` before Vite runs. `start` serves from `_fresh/server.js`. 41 42 42 43 ## Deploy (Deno Deploy) 43 44 44 45 1. Push this repository to GitHub (or GitLab). 45 46 2. In [Deno Deploy](https://dash.deno.com/), create a project from the repo. 46 47 3. Set **Root directory** to the repository root (this folder). 47 - 4. **Build step:** `deno task build` 48 + 4. **Build step:** `deno task build` (installs npm deps, then runs Vite — 49 + required on Deploy) 48 50 5. **Run command:** `deno task start` (or `deno serve -A _fresh/server.js` per 49 51 `deno.json`). 50 52
+1 -1
deno.json
··· 4 4 "tasks": { 5 5 "check": "deno fmt --check . && deno lint . && deno check", 6 6 "dev": "vite", 7 - "build": "vite build", 7 + "build": "deno install && vite build", 8 8 "gen:images": "deno run -A --node-modules-dir=auto scripts/generate-static-images.ts", 9 9 "gen:oauth-key": "deno run scripts/generate-oauth-key.ts", 10 10 "extract:lottie-assets": "deno run -A scripts/extract-lottie-assets.ts",