We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d2f0a55 + 0dd354e commit 384fc8dCopy full SHA for 384fc8d
.github/workflows/deploy.yml
@@ -18,6 +18,12 @@ jobs:
18
19
- run: npm install
20
21
+ - name: Create .env file
22
+ run: |
23
+ touch .env
24
+ echo VITE_API_URL=${{ secrets.VITE_API_URL }} >> .env
25
+ cat .env
26
+
27
- run: npm run build
28
29
- uses: aws-actions/configure-aws-credentials@v1
src/api/api.ts
@@ -1,7 +1,7 @@
1
import axios, { AxiosRequestHeaders } from 'axios';
2
3
const api = axios.create({
4
- baseURL: import.meta.env.VITE_API_URL ?? 'https://api.sos-rs.com',
+ baseURL: import.meta.env.VITE_API_URL ?? 'http://localhost:4000/',
5
});
6
7
api.interceptors.request.use((config) => {
0 commit comments