File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -55,14 +55,9 @@ export default defineNuxtModule<ModuleOptions>({
5555 logger . info ( 'Setting up auth...' )
5656
5757 // 2. Set up runtime configuration
58- let usedOrigin
59- const isOriginSet = typeof moduleOptions . origin === 'undefined'
60- if ( typeof moduleOptions . origin === 'undefined' ) {
61- // TODO: see if we can figure out localhost + port dynamically from the nuxt instance
62- usedOrigin = 'http://localhost:3000'
63- } else {
64- usedOrigin = moduleOptions . origin
65- }
58+ const isOriginSet = Boolean ( moduleOptions . origin )
59+ // TODO: see if we can figure out localhost + port dynamically from the nuxt instance
60+ const usedOrigin = moduleOptions . origin ?? 'http://localhost:3000'
6661
6762 const options = defu ( moduleOptions , {
6863 ...defaults ,
You can’t perform that action at this time.
0 commit comments