Skip to content

Commit b3b35f6

Browse files
committed
Add ph env to build step
1 parent ff4835f commit b3b35f6

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.github/workflows/deploy_dev.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ jobs:
4545
cmd: build
4646
env:
4747
NODE_OPTIONS: --openssl-legacy-provider
48+
POSTHOG_API_HOST: ${{ secrets.POSTHOG_API_HOST }}
49+
POSTHOG_PROJECT_KEY: ${{ secrets.POSTHOG_PROJECT_KEY }}
4850

4951
- id: 'auth'
5052
uses: 'google-github-actions/auth@v2'

.github/workflows/deploy_prod.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ jobs:
4343
cmd: build
4444
env:
4545
NODE_OPTIONS: --openssl-legacy-provider
46+
POSTHOG_API_HOST: ${{ secrets.POSTHOG_API_HOST }}
47+
POSTHOG_PROJECT_KEY: ${{ secrets.POSTHOG_PROJECT_KEY }}
4648

4749
- id: 'auth'
4850
uses: 'google-github-actions/auth@v2'

docusaurus.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
const path = require("path");
44

5-
const appUrl = process.env.POSTHOG_API_HOST || "-"
5+
const appUrl = process.env.POSTHOG_API_HOST
66
const apiKey = process.env.POSTHOG_PROJECT_KEY || "-"
77

88
module.exports = {

0 commit comments

Comments
 (0)