Files
worldwideview/docs/deployment.md
Antigravity AI 48a17bf3ee feat(sdk,docs): add vite static compiler export, overhaul documentation for plugin ecosystem [Minor]
- add wwvStaticCompiler to SDK vite/ subpath export [Minor]
- export createPluginContext and PluginContext type from SDK [Minor]
- update viteGlobals mapping for lucide-react [Patch]
- overhaul all docs/ for decoupled plugin development workflow [Minor]
- update README with new CLI-based plugin creation instructions [Minor]
- fix marketplace load route CORS and error handling [Patch]
- add test coverage for DeclarativePlugin edge cases [Patch]
- bump root to v1.18.0, SDK to v1.5.0
2026-04-23 10:19:17 +12:00

1.5 KiB

Deployment

WorldWideView is container-first. The codebase relies entirely on Dockerizing the Next.js output: "standalone" artifact and its localized Prisma SQLite core to enable horizontal orchestration.

Deployments are coordinated directly via Coolify natively compiling the Docker configurations.

Package Types

  • Next.js Core Bundle: Built directly via pnpm build, extracting into <root>/.next/standalone.
  • Plugin Microservices: Hosted alongside the Next.js router natively using Fastify images (defined in docker-compose.yml), enabling real-time Python/Node scraping backends exclusively connected via docker network aliases.
  • CDN ESM Bundles: Independent frontend plugins run via Vite rollup configurations (vite.config.ts), generating dist/frontend.mjs payloads published to the public NPM registry.

Platform Deployment

  • Dockerfile: Dockerfile explicitly targets node:22-alpine instances to restrict vulnerability surface areas while mapping the necessary system volume at /app/data to capture the wwv.db SQLite instantiation safely out-of-container (lines 80-112).
  • Environment Hydration: Coolify directly passes the active environment headers .env values at runtime, utilizing .env.local natively for credentials like AUTH_SECRET and DATABASE_URL.

Reference

The core production mapping operates cleanly off HTTP port 3000. Refer to next.config.ts (lines 5-15) for strict caching strategies utilized globally across deployments.