diff --git a/README.md b/README.md index a388ca6..9bf1a31 100644 --- a/README.md +++ b/README.md @@ -16,19 +16,34 @@ npm install npx allow-scripts ``` +### Compile and minify for production + +Set backend URL: + +``` +echo "VUE_APP_BACKEND_URL=https://mydomain.tld" > .env.local +``` + +Or un-set it if both frontend and backend will run on the same URL: + +``` +echo "VUE_APP_BACKEND_URL=" > .env.local +``` + +Compile: + +``` +npm run build +``` + +## Development + ### Compiles and hot-reloads for development ``` npm start ``` -### Compile and minify for production - -``` -echo "VUE_APP_BACKEND_URL=https://mydomain.tld" > .env.local -npm run build -``` - ### Run your unit tests ```