mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-04 03:39:37 -05:00 
			
		
		
		
	* perf: precompress and cache assets * fix cache header * use startswith --------- Co-authored-by: mertalev <101130780+mertalev@users.noreply.github.com>
		
			
				
	
	
		
			21 lines
		
	
	
		
			443 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			443 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
import adapter from '@sveltejs/adapter-static';
 | 
						|
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
 | 
						|
 | 
						|
/** @type {import('@sveltejs/kit').Config} */
 | 
						|
const config = {
 | 
						|
  preprocess: vitePreprocess(),
 | 
						|
  kit: {
 | 
						|
    adapter: adapter({
 | 
						|
      fallback: 'index.html',
 | 
						|
      precompress: true,
 | 
						|
    }),
 | 
						|
    alias: {
 | 
						|
      $lib: 'src/lib',
 | 
						|
      '$lib/*': 'src/lib/*',
 | 
						|
      '@test-data': 'src/test-data',
 | 
						|
    },
 | 
						|
  },
 | 
						|
};
 | 
						|
 | 
						|
export default config;
 |