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:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user