From 39f14c894311bfb87db716c5e315b748fbdaf350 Mon Sep 17 00:00:00 2001 From: Rozelin Date: Sat, 15 Jun 2024 18:42:42 +0900 Subject: [PATCH] =?UTF-8?q?=E8=AB=B8=E3=80=85=E3=81=A1=E3=82=87=E3=81=A3?= =?UTF-8?q?=E3=81=A8=E7=9B=B4=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.cjs | 1 + package.json | 1 + src/lib/apis/index.ts | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index eb237a3..3a65063 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -32,6 +32,7 @@ module.exports = { semi: false, }, ], + 'no-case-declarations': 'off', }, parser: 'vue-eslint-parser', parserOptions: { diff --git a/package.json b/package.json index 97d746f..e1fc8dc 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "scripts": { "dev": "vite", "build": "vue-tsc && vite build", + "build:prod": "export NODE_ENV=production && vue-tsc && vite build", "preview": "vite preview", "lint": "eslint src --ext .js,.ts,.vue", "gen-api": "node ./scripts/gen-api.js", diff --git a/src/lib/apis/index.ts b/src/lib/apis/index.ts index c1b0fc8..b224473 100644 --- a/src/lib/apis/index.ts +++ b/src/lib/apis/index.ts @@ -3,7 +3,7 @@ import { Apis, Configuration } from './generated' const api = new Apis( new Configuration({ basePath: - import.meta.env.MODE === 'production' + process.env.NODE_ENV === 'production' ? 'https://trap.show/h24s_19_server' : 'http://localhost:3000', }),