Commit Graph

20 Commits

Author SHA1 Message Date
davidherran 6e46808c27 fix: instant CMS uploads + heritage dark/light + ISR caching
Eliminates the need to run "docker compose build" after uploading
images via HQ Command. Heritage page now respects light/dark mode.

CACHE INVALIDATION
- New helper src/lib/revalidate.ts called from /api/assets and
  /api/public-upload after every upload, delete, folder create
- Pages switch from force-dynamic to ISR with revalidate=60
  (regenerated on demand whenever content changes, plus 60s safety)
- Nginx now sends "max-age=300, must-revalidate" instead of "expires 30d"
  on /cases/, /applications/, /news/, /parts/, /footage/, /operations-inbox/
  so browsers revalidate via If-Modified-Since (304s on unchanged files)
- Next.js Image Optimizer aligned with same TTL via minimumCacheTTL=300
  and adds /_next/image location block in Nginx for correct headers

HERITAGE DARK/LIGHT FIX (Bug #8)
- Replaces hardcoded #0A0A0C / #00F0FF / text-white with proper
  light + dark variants throughout markdown renderer (tables, lists,
  headings, blockquotes, paragraphs, images)
- Hero section, navigation pill, and CMS-driven sections now switch
  with the global theme toggle

SECURITY HARDENING
- Server actions bodySizeLimit reduced from 500MB to 50MB
  (large uploads still go through /api/assets which uses Nginx 500MB cap)

DEPLOY NOTES
- Run on VPS:
    git pull
    docker compose up -d --build app
    docker compose exec nginx nginx -s reload
- No DB schema changes in this commit. Existing 2FA users / data untouched.
2026-05-04 09:27:46 -05:00
davidherran 226b721721 fixes Network CoverImage3
Deploy to VPS / deploy (push) Has been cancelled
2026-04-21 11:06:40 -05:00
davidherran 8556ef78f4 fixes Network CoverImage2
Deploy to VPS / deploy (push) Has been cancelled
2026-04-21 10:47:58 -05:00
davidherran 64f23d833c fixes Network CoverImage
Deploy to VPS / deploy (push) Has been cancelled
2026-04-21 09:52:54 -05:00
davidherran 7ae5685ca9 fixes News
Deploy to VPS / deploy (push) Has been cancelled
2026-04-21 09:44:26 -05:00
davidherran da5a2ce2a2 fixes ApplicationIMG2
Deploy to VPS / deploy (push) Has been cancelled
2026-04-17 16:28:56 -05:00
davidherran 7fe1863c68 fixes ApplicationIMG
Deploy to VPS / deploy (push) Has been cancelled
2026-04-17 14:37:51 -05:00
davidherran 603ef51637 fixes Application nodeSlug
Deploy to VPS / deploy (push) Has been cancelled
2026-04-16 15:50:43 -05:00
davidherran 9d0ec57d7c fixes Markdown & Apex Globe
Deploy to VPS / deploy (push) Has been cancelled
2026-04-16 12:45:48 -05:00
davidherran 21d0f9ee1c fixes Markdown
Deploy to VPS / deploy (push) Has been cancelled
2026-04-16 10:29:20 -05:00
davidherran 69eb449da8 chore: untrack public assets, manage them outside git
Deploy to VPS / deploy (push) Has been cancelled
2026-04-16 13:18:26 +00:00
davidherran 86ef0e2d75 agregar idiomas a parts
Deploy to VPS / deploy (push) Has been cancelled
2026-04-08 12:47:26 -05:00
davidherran 20976432c9 fix: asset manager no longer closes edit modal on select
Deploy to VPS / deploy (push) Has been cancelled
2026-04-08 12:14:40 -05:00
davidherran c5b78c539e fix: nginx serves uploaded assets directly, docker volumes for all public dirs
Deploy to VPS / deploy (push) Has been cancelled
2026-04-08 17:07:49 +00:00
davidherran 80bb1962b2 fix: bodySizeLimit type
Deploy to VPS / deploy (push) Has been cancelled
2026-04-08 11:28:56 -05:00
davidherran cff3dc44be fix: upload limits and timeouts
Deploy to VPS / deploy (push) Has been cancelled
2026-04-08 11:26:46 -05:00
davidherran 3c20ce5c37 fix: upload limit 500MB, mount all public dirs in docker
Deploy to VPS / deploy (push) Has been cancelled
2026-04-08 15:56:56 +00:00
davidherran 0118774e31 production: docker fixes, nginx SSL config, generateStaticParams fallback
Deploy to VPS / deploy (push) Has been cancelled
2026-04-01 16:57:22 +00:00
davidherran fc24313f15 production: docker + nginx config for rf-flux.com
Deploy to VPS / deploy (push) Has been cancelled
2026-03-20 13:46:05 -05:00
davidherran b275b19f08 Initial commit from Create Next App 2026-02-22 11:45:37 -05:00