From 53ef8dbc08ced02ff7cfebd5e967381cf671beaf Mon Sep 17 00:00:00 2001 From: qilip Date: Wed, 3 Apr 2024 03:47:21 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20Fix:=20API=20url=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # --- .vscode/settings.json | 4 ++-- nuxt.config.ts | 4 ++-- stores/search.ts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 4740f9f..a81e724 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,7 +1,7 @@ { "editor.formatOnSave": true, "editor.codeActionsOnSave": { - "source.organizeImports": true, - "source.fixAll": true, + "source.organizeImports": "explicit", + "source.fixAll": "explicit" }, } diff --git a/nuxt.config.ts b/nuxt.config.ts index ce558b9..e4deeb6 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -83,7 +83,7 @@ export default defineNuxtConfig({ }, runtimeConfig: { public: { - apiBaseUrl: process.env.API_BASE_URL ?? 'https://api-dev.remak.io', + apiBaseUrl: process.env.API_BASE_URL ?? 'https://api.remak.io', sentry: { dsn: process.env.SENTRY_DSN ?? @@ -108,4 +108,4 @@ export default defineNuxtConfig({ server: true, client: true, }, -}); \ No newline at end of file +}); diff --git a/stores/search.ts b/stores/search.ts index c25d799..5091af5 100644 --- a/stores/search.ts +++ b/stores/search.ts @@ -81,7 +81,7 @@ export const useSearchStore = defineStore( if (!authStore.isSignedIn) return false; if (endOfDocuments.value) return false; - const { data, error }: any = await useRemak('/search/text', { + const { data, error }: any = await useRemak('/document/search/text', { baseURL: apiBaseUrl, method: 'GET', params: { query: cleanText, limit, offset }, @@ -108,7 +108,7 @@ export const useSearchStore = defineStore( if (!authStore.isSignedIn) return false; - const { data, error }: any = await useRemak('/search/hybrid', { + const { data, error }: any = await useRemak('/document/search/hybrid', { baseURL: apiBaseUrl, method: 'GET', params: { query: cleanText },