올린 뒤 배포물에서 지운다 — Datadog은 이미 받았고1 브라우저에는 노출되지 않는다.
VERSION=$(git log --pretty=format:'%h' -n 1)
yarn datadog-ci sourcemaps upload ./build \
--service "$SERVICE" \
--minified-path-prefix "$MINIFIED_PATH_PREFIX" \
--release-version "$VERSION"
rm ./build/static/js/*.map
Footnotes
-
Upload JavaScript Source Maps - Datadog: “It scans the dist directory and subdirectories to automatically upload source maps with the relevant minified files.” ↩