From 9602b6084e591da8438cc1409581145d83fcbd08 Mon Sep 17 00:00:00 2001 From: mirumi Date: Sun, 21 Nov 2021 17:42:24 +0900 Subject: [PATCH] [add] : publicPath --- .env.dev | 1 + .env.prd | 1 + vue.config.js | 3 +++ 3 files changed, 5 insertions(+) diff --git a/.env.dev b/.env.dev index ab03d62..923dc42 100644 --- a/.env.dev +++ b/.env.dev @@ -1,3 +1,4 @@ +NODE_ENV="dev" VUE_APP_API_ENDPOINT="https://kkqe8obe2i.execute-api.ap-northeast-1.amazonaws.com/yourcat-dev-apis/" VUE_APP_API_KEY="Ba2Qog5qH79IdNDxt0JvuaX1hs3YYYRy9LVN5xpP" VUE_APP_S3_BUCKET_URL="https://yourcat-dev-image.s3.ap-northeast-1.amazonaws.com/" diff --git a/.env.prd b/.env.prd index ff1f0d9..e55babc 100644 --- a/.env.prd +++ b/.env.prd @@ -1,3 +1,4 @@ +NODE_ENV="prd" VUE_APP_API_ENDPOINT="https://9cvctuwqz4.execute-api.ap-northeast-1.amazonaws.com/yourcat-prd-apis/" VUE_APP_API_KEY="Q9x9rfL3S55dapODerias4vMwNofrSkDfWW1Vgxg" VUE_APP_S3_BUCKET_URL="https://yourcat-prd-image.s3.ap-northeast-1.amazonaws.com/" diff --git a/vue.config.js b/vue.config.js index a335e5a..b897694 100644 --- a/vue.config.js +++ b/vue.config.js @@ -6,4 +6,7 @@ module.exports = { }, }, }, + publicPath: process.env.NODE_ENV === "prd" + ? "/apps/" + : "/", };