import { browser } from '$app/environment';

// API endpoints - all requests go through Oathkeeper for auth
export const config = {
	graphql: {
		url: 'https://api.example.com/graphql'
	},
	kratos: {
		publicUrl: 'https://auth.example.com',
		adminUrl: 'http://localhost:6050'
	},
	app: {
		origin: browser ? window.location.origin : 'https://local.example.com:5173'
	},
	// Dispatch account - services/projects assigned to this account are considered "dispatched"
	// and tracked by monitoring services.
	dispatch: {
		profileId: '00000000-0000-0000-0000-000000000000'  // Replace with your dispatch profile ID
	}
} as const;

// Cookie name used by Kratos
export const KRATOS_SESSION_COOKIE = 'ory_kratos_session';
