From 13db939a77fe82b96a2606c3bb47c3daa126dda7 Mon Sep 17 00:00:00 2001 From: toririm Date: Sat, 21 Sep 2024 02:34:37 +0900 Subject: [PATCH] export client --- .github/workflows/firebase-hosting-merge.yml | 2 +- .github/workflows/firebase-hosting-pull-request.yml | 2 +- app/lib/webhook.ts | 2 +- app/vite-env.d.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/firebase-hosting-merge.yml b/.github/workflows/firebase-hosting-merge.yml index 60071855..8e65e772 100644 --- a/.github/workflows/firebase-hosting-merge.yml +++ b/.github/workflows/firebase-hosting-merge.yml @@ -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 }} diff --git a/.github/workflows/firebase-hosting-pull-request.yml b/.github/workflows/firebase-hosting-pull-request.yml index 5fd88404..fa94bbb5 100644 --- a/.github/workflows/firebase-hosting-pull-request.yml +++ b/.github/workflows/firebase-hosting-pull-request.yml @@ -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 }} diff --git a/app/lib/webhook.ts b/app/lib/webhook.ts index 9dd240e1..7cbe93b8 100644 --- a/app/lib/webhook.ts +++ b/app/lib/webhook.ts @@ -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"); diff --git a/app/vite-env.d.ts b/app/vite-env.d.ts index 66917880..8bb23b20 100644 --- a/app/vite-env.d.ts +++ b/app/vite-env.d.ts @@ -1,7 +1,7 @@ /// interface ImportMetaEnv { - readonly WEBHOOK_URL: string; + readonly VITE_WEBHOOK_URL: string; } interface ImportMeta {