File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 55 - master
66env :
77 DATABASE_URL : ${{ secrets.DATABASE_URL }}
8- VITE_CLERK_PUBLISHABLE_KEY : ${{ secrets.VITE_CLERK_PUBLISHABLE_KEY }}
98jobs :
109 deploy :
1110 runs-on : ubuntu-latest
1514 - uses : actions/checkout@v4
1615 - uses : oven-sh/setup-bun@v2
1716 - run : bun install
17+ - name : Generate .env File
18+ run : echo "VITE_CLERK_PUBLISHABLE_KEY=${{ secrets.VITE_CLERK_PUBLISHABLE_KEY }}" > .env
1819 - name : Build Project
1920 run : bun run build
2021 - name : Run Tests
2728 apiToken : ${{ secrets.CLOUDFLARE_API_TOKEN }}
2829 accountId : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
2930 packageManager : bun
30- env :
31- VITE_CLERK_PUBLISHABLE_KEY : ${{ secrets.VITE_CLERK_PUBLISHABLE_KEY }}
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ declare module "@tanstack/react-router" {
1919}
2020
2121// Import your Publishable Key
22- const PUBLISHABLE_KEY = process . env . VITE_CLERK_PUBLISHABLE_KEY
22+ const PUBLISHABLE_KEY = import . meta . env . VITE_CLERK_PUBLISHABLE_KEY
2323
2424if ( ! PUBLISHABLE_KEY ) {
2525 throw new Error ( 'Add your Clerk Publishable Key to the .env file' )
You can’t perform that action at this time.
0 commit comments