Skip to content
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

Setup netlify deploy command breaks app #4246

Closed
memarino92 opened this issue Jan 22, 2022 · 2 comments · Fixed by #4247
Closed

Setup netlify deploy command breaks app #4246

memarino92 opened this issue Jan 22, 2022 · 2 comments · Fixed by #4247
Assignees

Comments

@memarino92
Copy link
Contributor

memarino92 commented Jan 22, 2022

Running yarn rw setup deploy netlify inserts invalid configuration into redwood.toml.

Before command dev server runs as normal

After command dev server gives following error

web | Error: `apiUrl` is configured incorrectly.
web | It should be an absolute path (thats starts with `/`) or an absolute URI that starts with `http[s]://`
error Command failed with exit code 1.

Replicated with fresh project here.

Redwood version: 0.42.1

Fix:

In redwood.toml under [web], change the line that says:

apiUrl = "./netlify/function"

to say:

apiUrl = "/.netlify/functions"

@thedavidprice
Copy link
Contributor

🤦‍♂️

Well, this one is just embarrasing. 😂

Excellent catch @memarino92 We re-architected that command a week ago and apparently dropped and "s".

@memarino92
Copy link
Contributor Author

Happy to help! 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Archived
Development

Successfully merging a pull request may close this issue.

3 participants