Skip to content

Commit

Permalink
Env var
Browse files Browse the repository at this point in the history
  • Loading branch information
katspaugh committed Nov 21, 2023
1 parent 79b1698 commit d3ad333
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,4 @@ runs:
NEXT_PUBLIC_FIREBASE_OPTIONS_STAGING: ${{ fromJSON(inputs.secrets).NEXT_PUBLIC_FIREBASE_OPTIONS_STAGING }}
NEXT_PUBLIC_FIREBASE_VAPID_KEY_PRODUCTION: ${{ fromJSON(inputs.secrets).NEXT_PUBLIC_FIREBASE_VAPID_KEY_PRODUCTION }}
NEXT_PUBLIC_FIREBASE_VAPID_KEY_STAGING: ${{ fromJSON(inputs.secrets).NEXT_PUBLIC_FIREBASE_VAPID_KEY_STAGING }}
NEXT_PUBLIC_SPINDL_SDK_KEY: ${{ fromJSON(inputs.secrets).NEXT_PUBLIC_SPINDL_SDK_KEY }}
6 changes: 4 additions & 2 deletions src/services/analytics/spindl.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import spindl from '@spindl-xyz/attribution-lite'
import { IS_PRODUCTION, SPINDL_SDK_KEY } from '@/config/constants'
import { IS_PRODUCTION } from '@/config/constants'

const spindlInit = () => {
const sdkKey = process.env.NEXT_PUBLIC_SPINDL_SDK_KEY

spindl.configure({
sdkKey: SPINDL_SDK_KEY,
sdkKey,
debugMode: !IS_PRODUCTION,
})
}
Expand Down

0 comments on commit d3ad333

Please sign in to comment.