cd
into the project and install pinata
.
.env.local
file in the root of the project and put in the following variable:
VITE_SERVER_URL
is the URL of your server endpoint that will return Presigned URLs. If you don’t have one be sure to follow the Hono guide first. If you did follow it then you’ll remember it was http://localhost:8787
and we’ll need to make sure it’s running in order for our flow to work.
The format of the Gateway domain should be mydomain.mypinata.cloud
.
src/App.tsx
file and replace it with the following code.
handleSubmit()
. This function will do the following:
http://localhost:5173
and upload a file!