From 558f1b4767dfb3e21c735b6bb3a7b481da088e65 Mon Sep 17 00:00:00 2001 From: TheSparta Date: Mon, 8 Apr 2024 15:15:44 +0100 Subject: [PATCH] added .env.production to frontend --- frontend/.env.example | 2 +- frontend/.env.production | 4 ++++ frontend/package.json | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 frontend/.env.production diff --git a/frontend/.env.example b/frontend/.env.example index 1220b80..6837c78 100644 --- a/frontend/.env.example +++ b/frontend/.env.example @@ -1,4 +1,4 @@ -VITE_BACKEND_URL=https://{{ SPT_ITEMS_HOSTNAME }} +VITE_BACKEND_URL=https://localhost:3000 VITE_SPTARKOV_HOME=https://www.sp-tarkov.com/ VITE_SPTARKOV_WORKSHOP=https://mods.sp-tarkov.com/ VITE_SPTARKOV_DOCUMENTATION=https://docs.sp-tarkov.com/ diff --git a/frontend/.env.production b/frontend/.env.production new file mode 100644 index 0000000..780087a --- /dev/null +++ b/frontend/.env.production @@ -0,0 +1,4 @@ +VITE_BACKEND_URL=https://db.sp-tarkov.com +VITE_SPTARKOV_HOME=https://www.sp-tarkov.com/ +VITE_SPTARKOV_WORKSHOP=https://mods.sp-tarkov.com/ +VITE_SPTARKOV_DOCUMENTATION=https://docs.sp-tarkov.com/ diff --git a/frontend/package.json b/frontend/package.json index 78119c0..d30401b 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -6,6 +6,7 @@ "scripts": { "dev": "vite", "build": "tsc && vite build", + "build:prod": "tsc && vite build --mode production", "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", "preview": "vite preview", "cy:open": "cypress open",