From d45d1ad56f96fa1572c66d425d3b38f57c2a5704 Mon Sep 17 00:00:00 2001 From: garionion Date: Sun, 4 Apr 2021 17:29:51 +0200 Subject: [PATCH] set API URL on build time Signed-off-by: garionion --- .env.production | 1 + README.md | 27 ++------------------------- src/api/index.ts | 2 +- 3 files changed, 4 insertions(+), 26 deletions(-) create mode 100644 .env.production diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..b8b8f74 --- /dev/null +++ b/.env.production @@ -0,0 +1 @@ +VITE_API_URL=https://psp.dets.ch/api \ No newline at end of file diff --git a/README.md b/README.md index a797a27..191d092 100644 --- a/README.md +++ b/README.md @@ -1,27 +1,4 @@ -# Vue 3 + Typescript + Vite +# Radiator-Web -This template should help get you started developing with Vue 3 and Typescript in Vite. +API URL must be set on Build Time, either via Env `API_URL`(prefered), or via `VITE_API_URL` from [`.env.production`](.env.production) -## Recommended IDE Setup - -[VSCode](https://code.visualstudio.com/) + [Vetur](https://marketplace.visualstudio.com/items?itemName=octref.vetur). Make sure to enable `vetur.experimental.templateInterpolationService` in settings! - -### If Using `