mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 18:41:08 +02:00
chore(nutriphi): update config and type definitions
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
c561c4c8d8
commit
cc6ca028a7
3 changed files with 3 additions and 13 deletions
|
|
@ -18,7 +18,7 @@
|
|||
"type": "state-management"
|
||||
},
|
||||
{
|
||||
"name": "supabase",
|
||||
"name": "mana-core-auth",
|
||||
"type": "authentication"
|
||||
}
|
||||
],
|
||||
|
|
|
|||
|
|
@ -1,7 +1,3 @@
|
|||
# Supabase Configuration (same as mobile app)
|
||||
PUBLIC_SUPABASE_URL=https://your-project.supabase.co
|
||||
PUBLIC_SUPABASE_ANON_KEY=your-supabase-anon-key
|
||||
|
||||
# Nutriphi Backend API
|
||||
PUBLIC_BACKEND_URL=http://localhost:3002
|
||||
|
||||
|
|
@ -9,9 +5,6 @@ PUBLIC_BACKEND_URL=http://localhost:3002
|
|||
PUBLIC_NUTRIPHI_MIDDLEWARE_URL=https://api.manacore.de
|
||||
PUBLIC_MIDDLEWARE_APP_ID=nutriphi
|
||||
|
||||
# Storage
|
||||
PUBLIC_STORAGE_BUCKET=meal-photos
|
||||
|
||||
# OAuth (optional)
|
||||
PUBLIC_GOOGLE_CLIENT_ID=your-google-client-id
|
||||
PUBLIC_APPLE_CLIENT_ID=your-apple-client-id
|
||||
|
|
|
|||
7
apps/nutriphi/apps/web/src/app.d.ts
vendored
7
apps/nutriphi/apps/web/src/app.d.ts
vendored
|
|
@ -1,17 +1,14 @@
|
|||
// See https://svelte.dev/docs/kit/types#app.d.ts
|
||||
// for information about these interfaces
|
||||
import type { Session, User } from '@supabase/supabase-js';
|
||||
|
||||
declare global {
|
||||
namespace App {
|
||||
// interface Error {}
|
||||
interface Locals {
|
||||
supabase: ReturnType<typeof import('@supabase/ssr').createServerClient>;
|
||||
safeGetSession: () => Promise<{ session: Session | null; user: User | null }>;
|
||||
// Authentication handled via Mana Middleware (client-side)
|
||||
}
|
||||
interface PageData {
|
||||
session: Session | null;
|
||||
user: User | null;
|
||||
// Page data types
|
||||
}
|
||||
// interface PageState {}
|
||||
// interface Platform {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue