Skip to content

Send and receive SMS messages using your Android phone programmatically via a simple HTTP API

Add debug scripts

Acho Arnolddd721d6e0787
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 1dfa0173..c2d0ea9d 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -50,8 +50,11 @@ jobs:
- name: Run tests πŸ§ͺ
run: yarn test
+ - name: Debug πŸ›
+ run: echo GITHUB_SHA=${GITHUB_SHA}
+
- name: Build πŸ—οΈ
- run: mv .env.production .env && GITHUB_SHA=${GITHUB_SHA}; yarn generate
+ run: mv .env.production .env && echo GITHUB_SHA=${GITHUB_SHA} > .env && yarn generate
- name: Deploy πŸš€
uses: FirebaseExtended/action-hosting-deploy@v0
diff --git a/web/plugins/axios.ts b/web/plugins/axios.ts
index a46a0320..0a705a4f 100644
--- a/web/plugins/axios.ts
+++ b/web/plugins/axios.ts
@@ -14,7 +14,7 @@ export function setAuthHeader(token: string | null) {
}
export function setApiKey(apiKey: string | null) {
- client.defaults.headers['x-api-key'] = apiKey
+ client.defaults.headers.common['x-api-key'] = apiKey
}
export default client