Skip to content

Commit c279bf2

Browse files
fix(sveltekit): always set config.basePath with SvelteKit imported base (#9889)
fix: overwrite basePath with sveltekit provided 'base' Co-authored-by: Balázs Orbán <[email protected]>
1 parent 82b9b3e commit c279bf2

File tree

1 file changed

+1
-0
lines changed
  • packages/frameworks-sveltekit/src/lib

1 file changed

+1
-0
lines changed

packages/frameworks-sveltekit/src/lib/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,4 +324,5 @@ function setEnvDefaults(config: SvelteKitAuthConfig) {
324324
if (building) return
325325
coreSetEnvDefaults(env, config)
326326
config.trustHost ??= dev
327+
config.basePath = `${base}/auth`
327328
}

0 commit comments

Comments
 (0)