Skip to content

Commit

Permalink
fix: add VITE_API_URL to actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rotimi-best committed Dec 2, 2024
1 parent 4e358f0 commit b167841
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
env:
VITE_API_URL: https://naijastars-api.classroomio.com

permissions:
id-token: write # Needed for auth with Deno Deploy
Expand Down
1 change: 1 addition & 0 deletions src/lib/pages/home/page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
isFetching = true;
try {
console.log('API_BASE_URL', API_BASE_URL);
const response = await fetch(`${API_BASE_URL}/repositories?limit=5`);
if (!response.ok) {
throw new Error('Failed to fetch repositories');
Expand Down

0 comments on commit b167841

Please sign in to comment.