By brettins
I created an App, making a static site based on Vue. However, when I set the graphql endpoint, the App seems to add on the base URL, making it incorrect, and so it doesn’t allow me to connect it to the API. Have I chosen the wrong type of App? Is there a way to avoid this rewrite?
gets rewritten to https://generated.digital.ocean.url/mysite.com/graphql
EDIT: It looks like the issue was that my component-level environment variable was missing the https:// and I was just looking at the app-level environment variable which was properly configured.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi there,
Happy to hear that you’ve got it all working by adding the environment variable and thank you for sharing this information here with the community.
Best,
Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.