V
V
vimirtv2019-03-04 09:22:30
webpack
vimirtv, 2019-03-04 09:22:30

How to change url in run build and run serve?

I am using vue cli. I have a global module where I write the API url. I need to change the url to the commands run build and run serve . Is it possible to do this somehow?
export let url = 'http://localhost:5005'

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lumore, 2019-03-04
@vimirtv

Environment Variables

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question