diff --git a/.env.dev b/.env.dev index f608ba3..5702020 100644 --- a/.env.dev +++ b/.env.dev @@ -1,6 +1,6 @@ -VITE_DOMAIN = http://localhost:5173/ +VITE_DOMAIN = https://192.168.0.251:5173/ # VITE_LOGIN_URL = http://localhost:10325/ms/ # VITE_FILE_URL = http://localhost:10325/ms/ -# VITE_API_URL = http://localhost:10325/api/ -VITE_API_URL = http://localhost:10325/test/ +VITE_API_URL = https://192.168.0.251:10325/api/ +VITE_TEST_URL = https://192.168.0.251:10325/test/ VITE_KAKAO_MAP_KEY=6f092e8f45ee81186bb6d8408f66a492 \ No newline at end of file diff --git a/.env.mine b/.env.mine new file mode 100644 index 0000000..6f5a98c --- /dev/null +++ b/.env.mine @@ -0,0 +1,6 @@ +VITE_DOMAIN = http://localhost:5173/ +# VITE_LOGIN_URL = http://localhost:10325/ms/ +# VITE_FILE_URL = http://localhost:10325/ms/ +VITE_API_URL = http://localhost:10325/api/ +VITE_TEST_URL = http://localhost:10325/test/ +VITE_KAKAO_MAP_KEY=6f092e8f45ee81186bb6d8408f66a492 \ No newline at end of file diff --git a/package.json b/package.json index 2b5c030..9640429 100644 --- a/package.json +++ b/package.json @@ -1,50 +1,51 @@ { - "name": "front", - "version": "0.0.1", - "private": true, - "type": "module", - "scripts": { - "dev": "vite --host 0.0.0.0 --mode dev", - "build": "vite build --mode prod", - "preview": "vite preview", - "lint": "eslint . --fix", - "format": "prettier --write src/" - }, - "dependencies": { - "@fullcalendar/core": "^6.1.15", - "@fullcalendar/daygrid": "^6.1.15", - "@fullcalendar/interaction": "^6.1.15", - "@fullcalendar/vue3": "^6.1.15", - "@popperjs/core": "^2.11.8", - "@tinymce/tinymce-vue": "^5.1.1", - "@vueup/vue-quill": "^1.2.0", - "axios": "^1.7.9", - "bootstrap": "^5.3.3", - "bootstrap-icons": "^1.11.3", - "dayjs": "^1.11.13", - "dompurify": "^3.2.3", - "flatpickr": "^4.6.13", - "front": "file:", - "heic2any": "^0.0.4", - "pinia": "^2.2.6", - "pinia-plugin-persist": "^1.0.0", - "quill": "^2.0.3", - "upload-images-converter": "^2.0.2", - "vite-plugin-mkcert": "^1.17.6", - "vue": "^3.5.13", - "vue-flatpickr-component": "^11.0.5", - "vue-router": "^4.4.5", - "vue3-kakao-maps": "^2.3.10" - }, - "devDependencies": { - "@eslint/js": "^9.14.0", - "@vitejs/plugin-vue": "^5.2.1", - "@vue/eslint-config-prettier": "^10.1.0", - "eslint": "^9.14.0", - "eslint-plugin-vue": "^9.30.0", - "prettier": "^3.3.3", - "vite": "^5.4.10", - "vite-plugin-inspect": "^0.8.9", - "vite-plugin-vue-devtools": "^7.6.5" - } + "name": "front", + "version": "0.0.1", + "private": true, + "type": "module", + "scripts": { + "dev": "vite --host 0.0.0.0 --mode dev", + "mine": "vite --host 0.0.0.0 --mode mine", + "build": "vite build --mode prod", + "preview": "vite preview", + "lint": "eslint . --fix", + "format": "prettier --write src/" + }, + "dependencies": { + "@fullcalendar/core": "^6.1.15", + "@fullcalendar/daygrid": "^6.1.15", + "@fullcalendar/interaction": "^6.1.15", + "@fullcalendar/vue3": "^6.1.15", + "@popperjs/core": "^2.11.8", + "@tinymce/tinymce-vue": "^5.1.1", + "@vueup/vue-quill": "^1.2.0", + "axios": "^1.7.9", + "bootstrap": "^5.3.3", + "bootstrap-icons": "^1.11.3", + "dayjs": "^1.11.13", + "dompurify": "^3.2.3", + "flatpickr": "^4.6.13", + "front": "file:", + "heic2any": "^0.0.4", + "pinia": "^2.2.6", + "pinia-plugin-persist": "^1.0.0", + "quill": "^2.0.3", + "upload-images-converter": "^2.0.2", + "vite-plugin-mkcert": "^1.17.6", + "vue": "^3.5.13", + "vue-flatpickr-component": "^11.0.5", + "vue-router": "^4.4.5", + "vue3-kakao-maps": "^2.3.10" + }, + "devDependencies": { + "@eslint/js": "^9.14.0", + "@vitejs/plugin-vue": "^5.2.1", + "@vue/eslint-config-prettier": "^10.1.0", + "eslint": "^9.14.0", + "eslint-plugin-vue": "^9.30.0", + "prettier": "^3.3.3", + "vite": "^5.4.10", + "vite-plugin-inspect": "^0.8.9", + "vite-plugin-vue-devtools": "^7.6.5" + } } diff --git a/src/common/axios-interceptor.js b/src/common/axios-interceptor.js index 3dd170d..46902ec 100644 --- a/src/common/axios-interceptor.js +++ b/src/common/axios-interceptor.js @@ -3,7 +3,7 @@ import { useRoute } from 'vue-router'; import { useToastStore } from '@s/toastStore'; const $api = axios.create({ - baseURL: 'https://192.168.0.251:10325/api/', + baseURL: import.meta.env.VITE_API_URL, timeout: 300000, withCredentials: true, }); diff --git a/src/layouts/TheTop.vue b/src/layouts/TheTop.vue index 9d219e8..9bd7296 100644 --- a/src/layouts/TheTop.vue +++ b/src/layouts/TheTop.vue @@ -8,9 +8,8 @@