fix(img): fix WebP Content-Type bug and seed 232 missing FileStorage records
- img.ts: replace hardcoded 'image/jpeg' Content-Type with dynamic MIME_MAP lookup per file extension — WebP files now served with correct 'image/webp' header so browsers can decode them - img.ts: skip sharp resize when no size param (serve original buffer directly) - Adds migration 20260423072135 to add stok and umkmId columns to PasarDesa - FileStorage DB now has all 232 MinIO images seeded (was 80, missing 152) - All domain records (Berita 18/18, GalleryFoto 3/3, PasarDesa 4/4, etc.) now have imageId properly linked after full re-seed Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
21
CLAUDE.md
21
CLAUDE.md
@@ -114,3 +114,24 @@ GitHub Actions workflows in `.github/workflows/`:
|
||||
- `re-pull.yml` — triggers Portainer to redeploy latest image
|
||||
|
||||
To release: tag with `git tag -a v0.1.x -m "..."` and push the tag.
|
||||
|
||||
### Workflow for Code Changes
|
||||
1. **Commit** existing changes before starting new work
|
||||
2. **Create plan** at `MIND/PLAN/[plan-name].md`
|
||||
3. **Create task** at `MIND/PLAN/[task-name].md`
|
||||
4. **Execute the task** and update task progress
|
||||
5. **Create summary** at `MIND/SUMMARY/[summary-name].md` when done
|
||||
6. **Run build** (`bun run build`) to ensure no compile errors
|
||||
7. **Fix any build errors** if they occur
|
||||
8. **Commit** all changes AFTER successful build
|
||||
9. **Update version** in `package.json` for every change
|
||||
10. **Push** to new branch with format: `tasks/[task-name]/[what-is-being-done]/[date-time]`
|
||||
11. **Push ke 2 Remote** - Push ke 2 remote origin dan deploy
|
||||
12. **Merge ke Branch** - Merge ke branch target (biasanya `stg` untuk staging atau `prod` untuk production) ke 2 remote origin dan deploy
|
||||
|
||||
### GitHub Workflows
|
||||
1. **publish.yml**: Uses branch `main`, stack env and image tag matching version from `package.json`.
|
||||
2. **re-pull.yml**: **Wait for `publish.yml` to complete successfully before running.** Uses branch `main`, stack env and stack name `desa-darmasaba`.
|
||||
|
||||
### After Progress
|
||||
- Always give option to continue to GitHub workflows or not
|
||||
|
||||
Reference in New Issue
Block a user