Skip to content

Commit

Permalink
Handling build secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
imariel2d committed Feb 14, 2024
1 parent e330f34 commit e566538
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
push: true
tags: ${{ env.IMAGE_URL }}
build-args: |
POSTHOG_KEY=${{ vars.NEXT_PUBLIC_POSTHOG_KEY }}
NEXT_PUBLIC_POSTHOG_KEY=${{ vars.NEXT_PUBLIC_POSTHOG_KEY }}
DATABASE_URL=${{ secrets.DATABASE_URL }}
TOKEN_BMX=${{ secrets.TOKEN_BMX }}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dolarenbancos",
"version": "0.1.52",
"version": "0.1.53",
"private": true,
"scripts": {
"prepare": "panda codegen && husky install",
Expand Down
4 changes: 2 additions & 2 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ interface Data {
}

export default async function Home () {
const posthog = new PostHog(process.env.NEXT_PUBLIC_POSTHOG_KEY!!,
const posthog = new PostHog(process.env.POSTHOG_KEY!!,
{
host: process.env.NEXT_PUBLIC_POSTHOG_HOST || 'https://app.posthog.com',
host: 'https://app.posthog.com',
flushAt: 1,
flushInterval: 0,
}
Expand Down

0 comments on commit e566538

Please sign in to comment.