File tree Expand file tree Collapse file tree
packages/start-nitro-v2-vite-plugin/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -116,18 +116,19 @@ export function nitroV2Plugin(nitroConfig?: UserNitroConfig): PluginOption {
116116 } ;
117117 } ,
118118 } ,
119- nitroConfig ?. preset . startsWith ( "netlify" ) && {
120- name : "solid-start-nitro-netlify -fix" ,
119+ {
120+ name : "solid-start-nitro-edge -fix" ,
121121 enforce : "post" ,
122122 async config ( ) {
123123 await fsp . rm ( ".solid-start" , { recursive : true , force : true } ) ;
124-
125124 return {
126125 environments : {
127126 client : { build : { outDir : ".solid-start/client" } } ,
128- ssr : nitroConfig . preset . toLowerCase ( ) . includes ( "static" )
129- ? undefined
130- : { build : { outDir : ".solid-start/server" } } ,
127+ ssr : {
128+ build : nitroConfig ?. preset ?. toLowerCase ( ) . includes ( "static" )
129+ ? undefined
130+ : { outDir : ".solid-start/server" } ,
131+ } ,
131132 } ,
132133 } ;
133134 } ,
You can’t perform that action at this time.
0 commit comments