Skip to content

Commit

Permalink
export client
Browse files Browse the repository at this point in the history
  • Loading branch information
toririm committed Sep 20, 2024
1 parent 5b777f6 commit 13db939
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: bun install --frozen-lockfile
- run: bun run build
env:
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
VITE_WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run: bun install --frozen-lockfile
- run: bun run build
env:
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
VITE_WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion app/lib/webhook.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const sendSlackMessage = async (message: string) => {
const webhookUrl = import.meta.env.WEBHOOK_URL;
const webhookUrl = import.meta.env.VITE_WEBHOOK_URL;

if (!webhookUrl) {
throw new Error("WEBHOOK_URL is not defined");
Expand Down
2 changes: 1 addition & 1 deletion app/vite-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/// <reference types="vite/client" />

interface ImportMetaEnv {
readonly WEBHOOK_URL: string;
readonly VITE_WEBHOOK_URL: string;
}

interface ImportMeta {
Expand Down

0 comments on commit 13db939

Please sign in to comment.