You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But sadly it gives me the route on port 5173, which is frontend dev server. but I needed the backend port 3000.
And even if I replace the port manually (or add another port on google console), It would still give a path with an extra '/api' since I'm grouping all routes within a single one.
Is there any way to do this better than this i.e Is there a way to get the absolute backend URL on the frontend? Or hardcoding these URLs are the only efficient way?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to use $url method to access the OAuth route at the backend like this
But sadly it gives me the route on port 5173, which is frontend dev server. but I needed the backend port 3000.
And even if I replace the port manually (or add another port on google console), It would still give a path with an extra '/api' since I'm grouping all routes within a single one.
Is there any way to do this better than this i.e Is there a way to get the absolute backend URL on the frontend? Or hardcoding these URLs are the only efficient way?
Beta Was this translation helpful? Give feedback.
All reactions