Skip to content
This repository was archived by the owner on Mar 23, 2023. It is now read-only.

Commit 0ff81a8

Browse files
committed
fix: frontend api url
1 parent f783faf commit 0ff81a8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.env.production

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
VITE_API_URL=""

src/pages/Gallery.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import React, { useEffect } from 'react'
44
function Gallery(props: RouteComponentProps) {
55
useEffect(() => {
66
// 405
7-
fetch(import.meta.env.VITE_API_URL + '/gallery').then((res) => console.log(res.json))
7+
fetch(import.meta.env.VITE_API_URL + '/api/v0/gallery').then((res) => console.log(res.json))
88
}, [])
99
return <div>Gallery</div>
1010
}

0 commit comments

Comments
 (0)