- 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
1.5 KiB
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), generatingdist/frontend.mjspayloads published to the public NPM registry.
Platform Deployment
- Dockerfile:
Dockerfileexplicitly targetsnode:22-alpineinstances to restrict vulnerability surface areas while mapping the necessary system volume at/app/datato capture thewwv.dbSQLite instantiation safely out-of-container (lines 80-112). - Environment Hydration: Coolify directly passes the active environment headers
.envvalues at runtime, utilizing.env.localnatively for credentials likeAUTH_SECRETandDATABASE_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.