Connect a static App Platform site to an external API, URL gets rewritten

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

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.

Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.