Files
OpenFlare/frontend/app/(docs)/docs/api/page.tsx
T
ryan 9f15f42b47 fix(frontend): keep browser API on same-origin rewrites in dev
Document that NEXT_PUBLIC_WAVELET_BACKEND_URL must stay unset for local
next dev so axios hits /api/* and Next rewrites proxy to the backend.
2026-08-03 21:25:22 +08:00

24 lines
599 B
TypeScript

import { getTranslations } from 'next-intl/server';
import { LegalPageLayout } from '@/components/common/docs/legal-page-layout';
import {
getApiSections,
DOCS_LAST_UPDATED,
} from '@/components/common/docs/api';
export default async function ApiDocPage() {
const t = await getTranslations('docs');
return (
<LegalPageLayout
title={t('api.title')}
lastUpdated={DOCS_LAST_UPDATED}
sections={getApiSections(t)}
description={
<p className='text-muted-foreground text-sm leading-relaxed'>
{t('api.description')}
</p>
}
/>
);
}