feat(ui): /new/from-photo Page mit File-Picker, Lade- und Fehler-States
This commit is contained in:
12
src/routes/new/from-photo/+page.server.ts
Normal file
12
src/routes/new/from-photo/+page.server.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import type { PageServerLoad } from './$types';
|
||||
import { error } from '@sveltejs/kit';
|
||||
import { env } from '$env/dynamic/private';
|
||||
|
||||
export const load: PageServerLoad = async () => {
|
||||
if (!env.GEMINI_API_KEY) {
|
||||
error(503, {
|
||||
message: 'Foto-Import ist nicht konfiguriert (GEMINI_API_KEY fehlt).'
|
||||
});
|
||||
}
|
||||
return {};
|
||||
};
|
||||
Reference in New Issue
Block a user