Skip to content
This repository has been archived by the owner on Dec 27, 2024. It is now read-only.

Commit

Permalink
fix: add default base path to server runtime config
Browse files Browse the repository at this point in the history
  • Loading branch information
ZerNico committed May 14, 2023
1 parent ee5be69 commit 06cd47a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ export default defineNuxtModule<LogtoNuxtConfig>({
setup(options, nuxt) {
const { resolve } = createResolver(import.meta.url)

nuxt.options.runtimeConfig.logto = defu(nuxt.options.runtimeConfig.logto, { ...options }, { coookieSecure: true })
nuxt.options.runtimeConfig.logto = defu(
nuxt.options.runtimeConfig.logto,
{ ...options },
{ coookieSecure: true, basePath: '/api/logto' }
)

nuxt.options.runtimeConfig.public.logto = defu(
nuxt.options.runtimeConfig.public.logto,
Expand Down

0 comments on commit 06cd47a

Please sign in to comment.