Configuration changes (#988)
* Use root path for development * Use cheaper source maps for development
This commit is contained in:
parent
c30429f7f4
commit
e5e5c638ad
2 changed files with 4 additions and 3 deletions
|
@ -8,8 +8,8 @@ ARG APP_MOUNT_URI
|
||||||
ARG API_URI
|
ARG API_URI
|
||||||
ARG STATIC_URL
|
ARG STATIC_URL
|
||||||
ENV API_URI ${API_URI:-http://localhost:8000/graphql/}
|
ENV API_URI ${API_URI:-http://localhost:8000/graphql/}
|
||||||
ENV APP_MOUNT_URI ${APP_MOUNT_URI:-/dashboard/}
|
ENV APP_MOUNT_URI ${APP_MOUNT_URI:-/}
|
||||||
ENV STATIC_URL ${STATIC_URL:-/dashboard/}
|
ENV STATIC_URL ${STATIC_URL:-/}
|
||||||
|
|
||||||
EXPOSE 9000
|
EXPOSE 9000
|
||||||
CMD npm start -- --host 0.0.0.0
|
CMD npm start -- --host 0.0.0.0
|
||||||
|
|
|
@ -66,6 +66,7 @@ module.exports = (env, argv) => {
|
||||||
// Create release if sentry config is set
|
// Create release if sentry config is set
|
||||||
let sentryPlugin;
|
let sentryPlugin;
|
||||||
if (
|
if (
|
||||||
|
!devMode &&
|
||||||
process.env.SENTRY_ORG &&
|
process.env.SENTRY_ORG &&
|
||||||
process.env.SENTRY_PROJECT &&
|
process.env.SENTRY_PROJECT &&
|
||||||
process.env.SENTRY_DSN &&
|
process.env.SENTRY_DSN &&
|
||||||
|
@ -85,7 +86,7 @@ module.exports = (env, argv) => {
|
||||||
hot: true,
|
hot: true,
|
||||||
port: 9000
|
port: 9000
|
||||||
},
|
},
|
||||||
devtool: "source-map",
|
devtool: devMode ? "cheap-module-source-map" : "source-map",
|
||||||
entry: {
|
entry: {
|
||||||
dashboard: "./src/index.tsx"
|
dashboard: "./src/index.tsx"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue