diff --git a/Dockerfile b/Dockerfile index ad82add7..0d4f3ec9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,4 +16,4 @@ RUN npm run build RUN cp build/404.html build/index.html -CMD ["sh", "-c", "npm run build && cp build/404.html build/index.html && npm run start"] \ No newline at end of file +CMD npm run build && cp build/404.html build/index.html && npm run start diff --git a/default.env b/default.env index bfb0e95d..97a0e2e4 100644 --- a/default.env +++ b/default.env @@ -29,6 +29,10 @@ COMPOSE_FILE=docker-compose.yaml:docker-compose.static-ingress.yaml VITE_VERSION_STRING= +# Debug option for non-prod deployments using /build output +# (Works best in Chrome) +# DEBUG=1 + ### ### Client environment variables: ### Variables with VITE_ prefix will be available to the client diff --git a/vite.config.ts b/vite.config.ts index 8f370b26..509bd8dc 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -12,6 +12,9 @@ export default defineConfig(({ mode }) => { server: { host: true, port: process.env.DEV_SERVER_PORT ? process.env.DEV_SERVER_PORT : 3000 + }, + build: { + sourcemap: process.env.DEBUG ?? false } } -}); \ No newline at end of file +});