ES module imports fail via file:// or raw Forge URLs (CORS + missing Content-Type headers). boot.js detects this and warns users. Three deployment options: - ./preview.sh — local Python server, correct MIME types - docker compose up nexus-preview — nginx on :8080 + WS proxy - Push to main — GitHub Pages auto-deploy Fixes #1339
786 B
786 B
Nexus Preview
ES module imports fail via file:// or raw Forge URLs. boot.js already warns: "Serve over HTTP to initialize Three.js."
Quick Start
./preview.sh # http://localhost:8080 (Python, no deps)
./preview.sh docker # http://localhost:8080 (nginx + WS proxy)
docker compose up -d nexus-preview nexus-backend # full stack
Options
| Method | Command | Port |
|---|---|---|
| Local Python | ./preview.sh |
8080 |
| Docker nginx | docker compose up nexus-preview |
8080 |
| GitHub Pages | push to main | auto |
Files
Dockerfile.preview— nginx containerpreview/nginx.conf— MIME types + WebSocket proxypreview.sh— Python preview server.github/workflows/pages.yml— GitHub Pages CI/CD