mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-04 03:27:09 -05:00 
			
		
		
		
	* feat: service worker cache static app resources, and all entry points * review comments * review * lint * minor tweaks * review comments * optimize disabled cache --------- Co-authored-by: Alex <alex.tran1502@gmail.com>
		
			
				
	
	
		
			35 lines
		
	
	
		
			890 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			890 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
import adapter from '@sveltejs/adapter-static';
 | 
						|
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
 | 
						|
import dotenv from 'dotenv';
 | 
						|
 | 
						|
dotenv.config();
 | 
						|
 | 
						|
process.env.PUBLIC_IMMICH_BUY_HOST = process.env.PUBLIC_IMMICH_BUY_HOST || 'https://buy.immich.app';
 | 
						|
process.env.PUBLIC_IMMICH_PAY_HOST = process.env.PUBLIC_IMMICH_PAY_HOST || 'https://pay.futo.org';
 | 
						|
 | 
						|
/** @type {import('@sveltejs/kit').Config} */
 | 
						|
const config = {
 | 
						|
  compilerOptions: {
 | 
						|
    runes: true,
 | 
						|
  },
 | 
						|
  preprocess: vitePreprocess(),
 | 
						|
  kit: {
 | 
						|
    paths: {
 | 
						|
      relative: false,
 | 
						|
    },
 | 
						|
    adapter: adapter({
 | 
						|
      fallback: 'index.html',
 | 
						|
      precompress: true,
 | 
						|
    }),
 | 
						|
    alias: {
 | 
						|
      $lib: 'src/lib',
 | 
						|
      '$lib/*': 'src/lib/*',
 | 
						|
      '@test-data': 'src/test-data',
 | 
						|
      $i18n: '../i18n',
 | 
						|
      'chromecast-caf-sender': './node_modules/@types/chromecast-caf-sender/index.d.ts',
 | 
						|
    },
 | 
						|
  },
 | 
						|
};
 | 
						|
 | 
						|
export default config;
 |