Skip to content

Commit 779a206

Browse files
authored
Merge pull request #31 from TeamCodeStream/feature/fix-sourcemaps
Fix path to sourcemap
2 parents 0d883a1 + 45317a6 commit 779a206

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,10 @@ RUN if [ -z "$FOSSA_API_KEY" ] ; then \
5757
RUN if [ -z "$NEW_RELIC_API_KEY" ] ; then \
5858
echo --SKIPPING SOURCE MAP UPLOAD ; \
5959
else \
60-
filename=$(ls /src/client/dist/assets/*.js | grep -v '.map.js' | xargs -n 1 basename) && \
60+
filename=$(ls /client/dist/assets/*.js | grep -v '.map.js' | xargs -n 1 basename) && \
61+
echo "JavaScript file is: $filename" && \
6162
curl -H "Api-Key: $NEW_RELIC_API_KEY" \
62-
-F "sourcemap=/src/client/dist/assets/$filename.map" \
63+
-F "sourcemap=/client/dist/assets/$filename.map" \
6364
-F "javascriptUrl=https://petclinic-demogorgon.staging-service.nr-ops.net/react/assets/$filename" \
6465
https://sourcemaps.service.newrelic.com/v2/applications/$BROWSER_APPLICATION_ID/sourcemaps ;\
6566
fi

0 commit comments

Comments
 (0)