From 052e46c1d72d8913adc68763153579fcb106044d Mon Sep 17 00:00:00 2001 From: silverpill Date: Sat, 30 Apr 2022 11:50:43 +0000 Subject: [PATCH] Update readme --- README.md | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) 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 ```