Skip to content

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
  • Loading branch information
39bytes committed May 27, 2024
1 parent 51da921 commit 45de2ef
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ permissions:

jobs:
build:
env:
VITE_API_URL: ${{ secrets.VITE_API_URL }}
environment: github-pages
runs-on: ubuntu-latest
steps:
- name: Checkout your repository using git
Expand Down
2 changes: 1 addition & 1 deletion src/components/preact/EventInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const EventInfo = () => {
);
useEffect(() => {
setEvent(undefined);
fetch(`${import.meta.env.VITE_API_URL}/events/${id}`)
fetch(`${import.meta.env.PUBLIC_API_URL}/events/${id}`)
.then((res) => res.json())
.then(setEvent)
.catch((e) => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/preact/Events.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const Events = () => {
);

useEffect(() => {
fetch(`${import.meta.env.VITE_API_URL}/events`)
fetch(`${import.meta.env.PUBLIC_API_URL}/events`)
.then((res) => res.json())
.then(setEventData)
.catch((e) => {
Expand Down

0 comments on commit 45de2ef

Please sign in to comment.