mirror of
https://github.com/immich-app/immich.git
synced 2026-07-28 22:51:21 -07:00
df970da59e
* chore(deps): update dependency eslint-plugin-unicorn to v70 * fix: linting --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Daniel Dietzler <mail@ddietzler.dev>
13 lines
537 B
TypeScript
13 lines
537 B
TypeScript
import type { Handle } from '@sveltejs/kit';
|
|
import GoogleSans from '$lib/assets/fonts/GoogleSans/GoogleSans.ttf?url';
|
|
import GoogleSansCode from '$lib/assets/fonts/GoogleSansCode/GoogleSansCode.ttf?url';
|
|
|
|
// 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%', () => GoogleSans).replace('%app.monofont%', () => GoogleSansCode);
|
|
},
|
|
});
|
|
}) satisfies Handle;
|