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
10 lines
434 B
Docker
10 lines
434 B
Docker
FROM nginx:alpine
|
|
RUN rm /etc/nginx/conf.d/default.conf
|
|
COPY preview/nginx.conf /etc/nginx/conf.d/default.conf
|
|
COPY index.html app.js style.css boot.js gofai_worker.js /usr/share/nginx/html/
|
|
COPY service-worker.js manifest.json robots.txt help.html portals.json vision.json /usr/share/nginx/html/
|
|
COPY nexus/ /usr/share/nginx/html/nexus/
|
|
COPY icons/ /usr/share/nginx/html/icons/
|
|
COPY assets/ /usr/share/nginx/html/assets/
|
|
EXPOSE 8080
|