Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Latest commit

 

History

History

README.md

Frontend

To test:

./lamini up

Then open localhost:3000, this endpoint can auto reload of frontend code.

Testing gated features locally

To enable the gated features with Statsig locally, add the globalData.config.environment == "dev" condition to the line that is using the Statsig.checkGate.

For example, to enable the Memory RAG locally, search for all MEMORY_RAG_UI in the codes, and make the following changes:

// 1. file: frontend/src/App.tsx:
// from:
{Statsig.checkGate(StatsigGate.MEMORY_RAG_UI) && (
// to:
{(Statsig.checkGate(StatsigGate.MEMORY_RAG_UI) || globalData.config.environment == "dev") && (

// from:
Statsig.checkGate(StatsigGate.MEMORY_RAG_UI)
// to:
(Statsig.checkGate(StatsigGate.MEMORY_RAG_UI) || globalData.config.environment == "dev"))

// 2. file: frontend/src/components/NavigationBar.tsx
// from:
if (Statsig.checkGate(StatsigGate.MEMORY_RAG_UI)) {
// to:
if (Statsig.checkGate(StatsigGate.MEMORY_RAG_UI) || globalData.config.environment == "dev") {