New: Learn Statamic on Laracasts!

We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Environment variables in Vue methods

Josh Hornby February 11, 2019 by Josh Hornby

I'm writing my own Fieldtype that needs to call an external endpoint to fetch some data. Depending on the environment eg dev/production I want to call a different URL.

What is the correct way to call environment variables from a Vue file?

Answered by Jesse Leite!
>>>>>>> Answered <<<<<<<
6 Replies
5 Followers