fix: pass BASE_URL to ViteSSG (#259)
This commit is contained in:
		
							parent
							
								
									c57d3cfe39
								
							
						
					
					
						commit
						cf503587e7
					
				@ -19,7 +19,7 @@ const routes = setupLayouts(generatedRoutes)
 | 
			
		||||
// https://github.com/antfu/vite-ssg
 | 
			
		||||
export const createApp = ViteSSG(
 | 
			
		||||
  App,
 | 
			
		||||
  { routes },
 | 
			
		||||
  { routes, base: import.meta.env.BASE_URL },
 | 
			
		||||
  (ctx) => {
 | 
			
		||||
    // install all modules under `modules/`
 | 
			
		||||
    Object.values(import.meta.globEager('./modules/*.ts')).map(i => i.install?.(ctx))
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user