File tree Expand file tree Collapse file tree
packages/start/src/config Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ function solidStartVitePlugin(options?: SolidStartOptions): Array<PluginOption>
4848 } ,
4949 solid : { } ,
5050 server : {
51+ ...options ?. server ,
5152 routeRules : {
5253 "/_build/assets/**" : {
5354 headers : { "cache-control" : "public, immutable, max-age=31536000" }
@@ -168,7 +169,9 @@ function solidStartVitePlugin(options?: SolidStartOptions): Array<PluginOption>
168169 "import.meta.env.MANIFEST" : `globalThis.MANIFEST` ,
169170 "import.meta.env.START_SSR" : JSON . stringify ( start . ssr ) ,
170171 "import.meta.env.START_APP_ENTRY" : `"${ normalizePath ( appEntryPath ) } "` ,
171- "import.meta.env.START_CLIENT_ENTRY" : `"${ normalizePath ( handlers . client ) } "`
172+ "import.meta.env.START_CLIENT_ENTRY" : `"${ normalizePath ( handlers . client ) } "` ,
173+ "import.meta.env.SERVER_BASE_URL" : JSON . stringify ( start . server . baseURL ?? "" ) ,
174+ "import.meta.env.START_DEV_OVERLAY" : JSON . stringify ( start . devOverlay ) ,
172175 }
173176 } ;
174177 }
@@ -266,7 +269,7 @@ function solidStartVitePlugin(options?: SolidStartOptions): Array<PluginOption>
266269 }
267270 }
268271 } ,
269- nitroPlugin ( { root : process . cwd ( ) } , ( ) => ssrBundle , start . server ) ,
272+ nitroPlugin ( { root : process . cwd ( ) } , ( ) => ssrBundle , start . server as UserNitroConfig ) ,
270273 {
271274 name : "solid-start:capture-client-bundle" ,
272275 enforce : "post" ,
You can’t perform that action at this time.
0 commit comments