File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed
Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @solidjs/start " : minor
3+ ---
4+
5+ adds the option to change the public directory to something other than the default "public"
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ type ViteCustomizableConfig = CustomizableConfig & {
1414} ;
1515
1616type SolidStartInlineConfig = {
17+ publicDir ?: string ;
1718 ssr ?: boolean ;
1819 solid ?: Options ;
1920 extensions ?: string [ ] ;
Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ export function defineConfig(baseConfig = {}) {
7171 let { vite = { } , ...start } = baseConfig ;
7272 const extensions = [ ...DEFAULT_EXTENSIONS , ...( start . extensions || [ ] ) ] ;
7373 start = defu ( start , {
74+ publicDir : "./public" ,
7475 appRoot : "./src" ,
7576 routeDir : "./routes" ,
7677 ssr : true ,
@@ -110,7 +111,7 @@ export function defineConfig(baseConfig = {}) {
110111 name : "public" ,
111112 type : "static" ,
112113 base : "/" ,
113- dir : "./public"
114+ dir : start . publicDir
114115 } ,
115116 {
116117 name : "ssr" ,
You can’t perform that action at this time.
0 commit comments