Skip to content

Commit 37d4d98

Browse files
authored
fix: #11107 push server sourcemaps to dd (#11119)
Signed-off-by: Matt Krick <[email protected]>
1 parent b46ad57 commit 37d4d98

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ jobs:
122122
environment: "production"
123123
sourcemaps: "./build"
124124
version: ${{env.ACTION_VERSION}}
125-
- name: Push Artifacts to Datadog
125+
- name: Push Client Artifacts to Datadog
126126
env:
127127
DATADOG_API_KEY: "${{secrets.DATADOG_API_KEY}}"
128128
CDN_BUILD_URL: "https://action-files.parabol.co/production/build/"
@@ -131,7 +131,14 @@ jobs:
131131
--service=parabol-saas-production \
132132
--release-version=${{env.ACTION_VERSION}} \
133133
--minified-path-prefix=${{env.CDN_BUILD_URL}}
134-
134+
- name: Push Server Artifacts to Datadog
135+
env:
136+
DATADOG_API_KEY: "${{secrets.DATADOG_API_KEY}}"
137+
run: |
138+
yarn datadog-ci sourcemaps upload ./dist \
139+
--service=web \
140+
--release-version=${{env.ACTION_VERSION}} \
141+
--minified-path-prefix="parabol/dist/"
135142
- name: Report Status
136143
if: failure()
137144
uses: ravsamhq/notify-slack-action@v2

scripts/webpack/prod.servers.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ module.exports = (config) => {
2222
const noDeps = config.noDeps === 'true'
2323
return {
2424
mode: 'production',
25+
devtool: noDeps ? 'source-map' : undefined,
2526
node: {
2627
__dirname: false
2728
},

0 commit comments

Comments
 (0)