fix: allow hosting in subfolder via BASE_URL
This commit is contained in:
		
							parent
							
								
									4cbd7ac145
								
							
						
					
					
						commit
						54af194d92
					
				
							
								
								
									
										12
									
								
								index.html
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								index.html
									
									
									
									
									
								
							| @ -2,7 +2,7 @@ | |||||||
| <html lang="en"> | <html lang="en"> | ||||||
|   <head> |   <head> | ||||||
|     <meta charset="UTF-8" /> |     <meta charset="UTF-8" /> | ||||||
|     <link rel="icon" href="/favicon.ico" /> |     <link rel="icon" href="favicon.ico" /> | ||||||
|     <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |     <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||||||
|     <title>IT Tools - Handy online tools for developers</title> |     <title>IT Tools - Handy online tools for developers</title> | ||||||
|     <meta itemprop="name" content="IT Tools - Handy online tools for developers" /> |     <meta itemprop="name" content="IT Tools - Handy online tools for developers" /> | ||||||
| @ -14,13 +14,13 @@ | |||||||
|       itemprop="description" |       itemprop="description" | ||||||
|       content="Collection of handy online tools for developers, with great UX. IT Tools is a free and open-source collection of handy online tools for developers & people working in IT." |       content="Collection of handy online tools for developers, with great UX. IT Tools is a free and open-source collection of handy online tools for developers & people working in IT." | ||||||
|     /> |     /> | ||||||
|     <link rel="author" href="/humans.txt" /> |     <link rel="author" href="humans.txt" /> | ||||||
|     <link rel="canonical" href="https://it-tools.tech" /> |     <link rel="canonical" href="https://it-tools.tech" /> | ||||||
| 
 | 
 | ||||||
|     <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" /> |     <link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png" /> | ||||||
|     <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" /> |     <link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png" /> | ||||||
|     <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" /> |     <link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png" /> | ||||||
|     <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#18a058" /> |     <link rel="mask-icon" href="safari-pinned-tab.svg" color="#18a058" /> | ||||||
|     <meta name="msapplication-TileColor" content="#da532c" /> |     <meta name="msapplication-TileColor" content="#da532c" /> | ||||||
|     <meta name="theme-color" content="#ffffff" /> |     <meta name="theme-color" content="#ffffff" /> | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -55,7 +55,7 @@ export default defineConfig({ | |||||||
|         description: 'Aggregated set of useful tools for developers.', |         description: 'Aggregated set of useful tools for developers.', | ||||||
|         display: 'standalone', |         display: 'standalone', | ||||||
|         lang: 'fr-FR', |         lang: 'fr-FR', | ||||||
|         start_url: '/?utm_source=pwa&utm_medium=pwa', |         start_url: `${process.env.BASE_URL}/?utm_source=pwa&utm_medium=pwa`, | ||||||
|         orientation: 'any', |         orientation: 'any', | ||||||
|         theme_color: '#18a058', |         theme_color: '#18a058', | ||||||
|         background_color: '#f1f5f9', |         background_color: '#f1f5f9', | ||||||
| @ -92,6 +92,7 @@ export default defineConfig({ | |||||||
|     }), |     }), | ||||||
|     Unocss(), |     Unocss(), | ||||||
|   ], |   ], | ||||||
|  |   base: process.env.BASE_URL, | ||||||
|   resolve: { |   resolve: { | ||||||
|     alias: { |     alias: { | ||||||
|       '@': fileURLToPath(new URL('./src', import.meta.url)), |       '@': fileURLToPath(new URL('./src', import.meta.url)), | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user