'use client'; import { ApiDataSource, ClaudeDbDataSource } from '@lms/data'; import { Platform } from '@lms/features'; // Any plain build (`next build`, as the CI server runs it) talks to the real API. // The hosted artifact demo opts out by building with NEXT_PUBLIC_LMS_API set to an empty value (`demo:build`): // its sandbox can't reach outside servers, so it keeps its own data. Another API (e.g. staging) is a different value. const DEFAULT_API = 'https://api.rezina.yaltopia.com'; const API = process.env.NEXT_PUBLIC_LMS_API ?? DEFAULT_API; const makeDs = () => (API ? new ApiDataSource(API) : new ClaudeDbDataSource()); export default function Page() { return ; }