fix: broken dev source maps
This commit is contained in:
@@ -2,6 +2,9 @@ FROM node:18-bookworm-slim@sha256:c569d19289293797aefad0473a046d882f1b9eb0f444e9
|
||||
ARG NODE_ENV=production
|
||||
ARG SPECKLE_SERVER_VERSION=custom
|
||||
|
||||
# have to build w/ sourcemaps and then delete them, cause otherwise the file hashes are different (absurd, i know...)
|
||||
ENV BUILD_SOURCEMAPS=true
|
||||
|
||||
WORKDIR /speckle-server
|
||||
|
||||
COPY .yarnrc.yml .
|
||||
@@ -29,6 +32,7 @@ COPY packages/frontend-2 ./packages/frontend-2/
|
||||
RUN yarn workspaces focus -A
|
||||
# hadolint ignore=DL3059
|
||||
RUN yarn workspaces foreach run build
|
||||
RUN find ./packages/frontend-2/.output/ -type f -name "*.js.map" -exec rm -f {} \;
|
||||
|
||||
ENV TINI_VERSION v0.19.0
|
||||
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
|
||||
|
||||
@@ -24,8 +24,7 @@ const buildSourceMaps = ['1', 'true', true, 1].includes(BUILD_SOURCEMAPS)
|
||||
|
||||
// https://v3.nuxtjs.org/api/configuration/nuxt.config
|
||||
export default defineNuxtConfig({
|
||||
// sourcemaps in prod only needed for datadog and should be deleted after (or at least made inaccessible?)
|
||||
sourcemap: !!buildSourceMaps,
|
||||
...(buildSourceMaps ? { sourcemap: true } : {}),
|
||||
typescript: {
|
||||
shim: false,
|
||||
strict: true
|
||||
|
||||
Reference in New Issue
Block a user