mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-04 03:27:09 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			505 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			505 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
import overpass from '$lib/assets/fonts/overpass/Overpass.ttf?url';
 | 
						|
import overpassMono from '$lib/assets/fonts/overpass/OverpassMono.ttf?url';
 | 
						|
import type { Handle } from '@sveltejs/kit';
 | 
						|
 | 
						|
// only used during the build to replace the variables from app.html
 | 
						|
export const handle = (async ({ event, resolve }) => {
 | 
						|
  return resolve(event, {
 | 
						|
    transformPageChunk: ({ html }) => {
 | 
						|
      return html.replace('%app.font%', overpass).replace('%app.monofont%', overpassMono);
 | 
						|
    },
 | 
						|
  });
 | 
						|
}) satisfies Handle;
 |