Configuration changes (#988)

* Use root path for development

* Use cheaper source maps for development
This commit is contained in:
Jakub Majorek 2021-02-24 12:20:59 +01:00 committed by GitHub
parent c30429f7f4
commit e5e5c638ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View file

@ -8,8 +8,8 @@ ARG APP_MOUNT_URI
ARG API_URI
ARG STATIC_URL
ENV API_URI ${API_URI:-http://localhost:8000/graphql/}
ENV APP_MOUNT_URI ${APP_MOUNT_URI:-/dashboard/}
ENV STATIC_URL ${STATIC_URL:-/dashboard/}
ENV APP_MOUNT_URI ${APP_MOUNT_URI:-/}
ENV STATIC_URL ${STATIC_URL:-/}
EXPOSE 9000
CMD npm start -- --host 0.0.0.0

View file

@ -66,6 +66,7 @@ module.exports = (env, argv) => {
// Create release if sentry config is set
let sentryPlugin;
if (
!devMode &&
process.env.SENTRY_ORG &&
process.env.SENTRY_PROJECT &&
process.env.SENTRY_DSN &&
@ -85,7 +86,7 @@ module.exports = (env, argv) => {
hot: true,
port: 9000
},
devtool: "source-map",
devtool: devMode ? "cheap-module-source-map" : "source-map",
entry: {
dashboard: "./src/index.tsx"
},