Implement active user tiers, class-based Tailwind theme switcher, 3-tiled static dashboard layout, Minio object storage integration, school & state settings database sync, and streak wishes onboarding modal

This commit is contained in:
2026-07-07 13:43:30 +05:30
parent 426b98ddab
commit 04db17ea0e
24 changed files with 913 additions and 236 deletions

View File

@@ -238,9 +238,7 @@ export const useCBTStore = create<CBTState>()(
if (!payload) return;
try {
const rawUrl = process.env.NEXT_PUBLIC_API_URL || 'http://localhost:8000';
const apiUrl = rawUrl.replace(/\/$/, '');
const res = await fetch(`${apiUrl}/api/attempts/submit`, {
const res = await fetch(`/api/attempts/submit`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(payload),