-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a way to configure apiUrl for both dev and prod? #144
Comments
What is the issue when using this setting? $authProvider.configure({ apiUrl: '/' }); |
When I use that setting, clicking on a simple "Sign in with Google" button goes to
In other words, it doesn't seem to know to append urls to the root... it should be
|
@davidtlee - did you get this sorted out? |
nope, whoops, I must've accidentally closed it. |
So I didn't fix it, but now the problem is no longer relevant since I just decided to change to:
and then change the rails route to:
|
In order for me to get apiUrl to work on dev, I currently have to set it as:
$authProvider.configure({ apiUrl: 'http://localhost:3000/' });
I would like to set it as:
$authProvider.configure({ apiUrl: '/' });
so that it would be independent of dev and prod. Unfortunately, this doesn't seem to work. Does anyone have suggestions for how to do that? Thanks!
Currently I have my rails route as follows:
The text was updated successfully, but these errors were encountered: