mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-09-29 14:06:36 +08:00
9f15f42b47
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.
24 lines
599 B
TypeScript
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>
|
|
}
|
|
/>
|
|
);
|
|
}
|