Ilyas-Codes / eCourse

A self-hosted SPA to simplify course creation and management
https://ecourse.pockethost.io
MIT License
452 stars 36 forks source link

Modify Pocketbase API request? #18

Closed bojtalepenye closed 1 month ago

bojtalepenye commented 1 month ago

I have a pocketbase server running on a subdomain. Let's say: pocketbase.domain.com I also run this eCourse server UI on a subdomain. Let's say ecourse.domain.com When I try to login, it cannot reach the database obviously, because it sends the request to the local address.

POST http://127.0.0.1:8090/api/collections/users/auth-with-password net::ERR_CONNECTION_REFUSED

How would I be able to modify where eCourse sends its API request? -> pocketbase.domain.com

Important: I have already added this to the .env file, and it didn't work

pi@raspberrypi:~/eCourse/ui $ cat .env
VITE_DEV_PB_URL=https://pocketbase.domain.com
VITE_PROD_PB_URL=https://pocketbase.domain.com
pi@raspberrypi:~/eCourse/ui $

Thanks,

perronedotdev commented 1 day ago

Were you able to resolve this issue? I'm having the same problem.