feat: awesome immich (#239)

This commit is contained in:
Jason Rasmussen
2025-10-16 15:33:56 -04:00
committed by GitHub
parent df47cfd189
commit 02bc29ab57
48 changed files with 809 additions and 440 deletions
+33
View File
@@ -0,0 +1,33 @@
import adapter from '@sveltejs/adapter-static';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
import dotenv from 'dotenv';
import { resolve } from 'node:path';
dotenv.config({ path: '../../.env' });
const staticFiles = ['/favicon.ico', '/img/social-preview.png'];
/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: vitePreprocess(),
kit: {
adapter: adapter(),
alias: {
$common: '../../common',
'$common/*': '../../common/*',
'@immich/ui': resolve('./node_modules/@immich/ui/dist'),
},
prerender: {
handleHttpError: ({ path, message }) => {
if (staticFiles.includes(path)) {
return;
}
// otherwise fail the build
throw new Error(message);
},
},
},
};
export default config;