File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -30,11 +30,14 @@ function getConfig(initializationOptions: InitializationOptions = {}): SettingsO
3030 config . version = pkgJson . version . includes ( '-' ) ? pkgJson . version . split ( '-' ) [ 0 ] : pkgJson . version ;
3131
3232 config . context = typeof initializationOptions . context !== 'undefined' ? initializationOptions . context : 'unknown' ;
33+
3334 config . server = initializationOptions . context === 'server' && config . server ;
3435 config . build = initializationOptions . context === 'build' && config . build ;
3536 config . worker = ! ! initializationOptions . worker ;
3637 config . prefix = serverPrefix ;
37- config . server = serverPrefix ? { prefix : serverPrefix } : false ;
38+ if ( serverPrefix && config . server ) {
39+ config . server . prefix = serverPrefix ;
40+ }
3841
3942 const ssrComponents = path . resolve ( config . rootDir , './___ELDER___/compiled/' ) ;
4043 const clientComponents = path . resolve ( config . distDir , `.${ serverPrefix } /_elderjs/svelte/` ) ;
You can’t perform that action at this time.
0 commit comments