Files
OpenFlare/frontend/app/(docs)/docs/how-to-use/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

22 lines
670 B
TypeScript

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