spinspire / pocketbase-sveltekit-starter

a starter project to build a SvelteKit frontend with PocketBase backend
MIT License
363 stars 62 forks source link

/api/hello 404 #7

Closed YCF closed 1 year ago

YCF commented 1 year ago

at /backend

go run main.go serve

when i visited /api/hello return :

Hello world!

after npm run build,at /frontend

npm run dev:backend
npm run dev

when i visited /api/hello return :

{"code":404,"message":"Not Found.","data":{}}
jkdoshi commented 1 year ago

Make sure frontend/.env file contains the correct setting for PUBLIC_BACKEND (e.g. http://127.0.0.1:8090)