Skip to content

Commit 1c37173

Browse files
committed
fix(proxy): should use $apiUrl instead
1 parent c3b8d4c commit 1c37173

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

apps/frontend/app/utils/auth.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ export interface getSignInUrlParams {
44
query?: Record<string, string>
55
}
66
export function getSignInUrl({ query }: getSignInUrlParams = {}) {
7-
const runtimeConfig = useRuntimeConfig()
7+
const { $apiUrl } = useNuxtApp()
88

9-
return withQuery(`${runtimeConfig.public.backendUrl}/api/auth/login`, {
9+
return withQuery(`${$apiUrl}/api/auth/login`, {
1010
path: useRequestURL().pathname,
1111
...query,
1212
})
1313
}
1414

1515
export function getSignOutUrl() {
16-
const runtimeConfig = useRuntimeConfig()
16+
const { $apiUrl } = useNuxtApp()
1717

18-
return `${runtimeConfig.public.backendUrl}/api/auth/logout`
18+
return `${$apiUrl}/api/auth/logout`
1919
}

0 commit comments

Comments
 (0)