Skip to content

Commit

Permalink
chore: Deployment test
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixNgFender committed Sep 18, 2023
1 parent 22d3a29 commit 02f98b6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ jobs:
uses: peaceiris/actions-gh-pages@v3
env:
VITE_REACT_APP_CLERK_PUBLISHABLE_KEY: ${{ secrets.VITE_REACT_APP_CLERK_PUBLISHABLE_KEY }}
REACT_APP_CLERK_PUBLISHABLE_KEY: ${{ secrets.REACT_APP_CLERK_PUBLISHABLE_KEY }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./frontend/react_app/dist
4 changes: 3 additions & 1 deletion frontend/react_app/src/features/upload/routes/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ export const Home = () => {
const { setNotification } = useNotificationStore();

const fetchTracks = () => {
getTracks().then((tracks) => setTracks(tracks));
getTracks().then((tracks) => {
if (typeof tracks !== "string") setTracks(tracks);
});
};

useEffect(fetchTracks, []);
Expand Down
3 changes: 3 additions & 0 deletions frontend/react_app/src/lib/axios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ export const axios = Axios.create({
timeout: 10000,
headers: {
Accept: "application/json",
// Add ngrok skip browser warning
// "Bypass-Tunnel-Reminder": true,
// "ngrok-skip-browser-warning": "true",
},
});

Expand Down

0 comments on commit 02f98b6

Please sign in to comment.