Skip to content

Commit b38091d

Browse files
chore: add iOS source-map fixture (#2747)
1 parent 8979ce7 commit b38091d

23 files changed

Lines changed: 883 additions & 700 deletions

File tree

apps/error-tracking-upload-source-maps/cicd-monorepo-raw-node-react/.github/workflows/deploy-backend.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,6 @@ jobs:
6565
labels: ${{ steps.meta.outputs.labels }}
6666
cache-from: type=gha
6767
cache-to: type=gha,mode=max
68-
build-args: |
69-
POSTHOG_CLI_API_KEY=${{ secrets.POSTHOG_CLI_API_KEY }}
70-
POSTHOG_CLI_PROJECT_ID=${{ secrets.POSTHOG_CLI_PROJECT_ID }}
71-
POSTHOG_CLI_HOST=${{ secrets.POSTHOG_CLI_HOST }}
7268

7369
deploy:
7470
name: Deploy to server over SSH

apps/error-tracking-upload-source-maps/cicd-monorepo-raw-node-react/backend/Dockerfile

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@ RUN npm ci
1212
# Compile src/ -> dist/
1313
COPY tsconfig.json ./
1414
COPY src ./src
15-
# PostHog source map upload credentials — consumed by posthog-cli during npm run build.
16-
ARG POSTHOG_CLI_API_KEY
17-
ARG POSTHOG_CLI_PROJECT_ID
18-
ARG POSTHOG_CLI_HOST
19-
ENV POSTHOG_CLI_API_KEY=$POSTHOG_CLI_API_KEY \
20-
POSTHOG_CLI_PROJECT_ID=$POSTHOG_CLI_PROJECT_ID \
21-
POSTHOG_CLI_HOST=$POSTHOG_CLI_HOST
2215
RUN npm run build
2316

2417
# ---- Runtime stage ----

apps/error-tracking-upload-source-maps/cicd-monorepo-raw-node-react/backend/package-lock.json

Lines changed: 18 additions & 46 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/error-tracking-upload-source-maps/cicd-monorepo-raw-node-react/backend/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
"private": true,
55
"type": "module",
66
"scripts": {
7-
"build": "tsc && posthog-cli --dotenv-file .env sourcemap inject --directory ./dist && posthog-cli --dotenv-file .env sourcemap upload --directory ./dist --release-name backend",
7+
"build": "tsc",
88
"start": "node --env-file=.env dist/index.js"
99
},
1010
"dependencies": {
1111
"posthog-node": "^5.35.4"
1212
},
1313
"devDependencies": {
14-
"@posthog/cli": "latest",
14+
"@types/node": "^26.0.0",
1515
"typescript": "^5.7.2"
1616
}
1717
}

apps/error-tracking-upload-source-maps/cicd-monorepo-raw-node-react/backend/tsconfig.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
"outDir": "dist",
77
"rootDir": "src",
88
"strict": true,
9-
"skipLibCheck": true,
10-
"sourceMap": true,
11-
"inlineSources": true
9+
"skipLibCheck": true
1210
},
1311
"include": ["src"]
1412
}

0 commit comments

Comments
 (0)