Commit Graph

4 Commits

Author SHA1 Message Date
Jose Selesan
8cb5fe9b08 fix(deploy): allow dev and prod stacks on the same Dokploy server
Stop publishing web on host port 8080, which clashed between stacks; Traefik
reaches port 80 of the container through dokploy-network. Local testing now
uses docker-compose.local.yml to publish the port.

Proxy nginx to a `gruperly-api` alias that only exists on the stack's own
network: the `api` service name is also registered on dokploy-network, so
with two stacks nginx could reach the other environment's API.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 15:36:25 -03:00
Jose Selesan
2be59f99dd fix(web): make PWA build work in Docker and serve manifest with correct MIME
El build de Docker fallaba con "Rollup failed to resolve import
workbox-window from virtual:pwa-register". Localmente no pasaba: bun
hoisteaba la dependencia transitiva de vite-plugin-pwa a la raíz, pero
en la imagen usa el layout aislado y la deja solo en node_modules/.bun/,
sin symlink alcanzable desde apps/web. Se declara como devDependency
directa de apps/web para que resuelva desde apps/web/node_modules.

De paso, nginx servía el manifest como application/octet-stream porque
mime.types de alpine no conoce webmanifest; se mueve a su propia location
con el tipo correcto. Sigue en no-cache y con =404.
2026-09-28 22:34:35 -03:00
Jose Selesan
2fd1826014 feat(pwa): implement PWA installation banner and context provider
- Add `generate-icons.ts` script to generate PWA icons from SVG.
- Create `InstallBanner` component for prompting users to install the app.
- Implement `PwaProvider` to manage PWA installation state and events.
- Export `PwaProvider` and `InstallBanner` from the PWA feature index.
2026-09-28 20:55:48 -03:00
Jose Selesan
f05fbf9e30 feat: enhance Docker setup and deployment configuration 2026-09-28 16:41:28 -03:00