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.
This commit is contained in:
ryan
2026-07-24 16:37:24 +08:00
parent a4588b05e0
commit 9f15f42b47
75 changed files with 5971 additions and 2450 deletions
@@ -1,16 +1,19 @@
import { getTranslations } from 'next-intl/server';
import { LegalPageLayout } from '@/components/common/docs/legal-page-layout';
import {
TERMS_LAST_UPDATED,
termsSections,
getTermsSections,
} from '@/components/common/docs/terms';
export default function TermsOfServicePage() {
export default async function TermsOfServicePage() {
const t = await getTranslations('docs');
return (
<LegalPageLayout
title='服务协议 (Terms)'
title={t('terms.title')}
lastUpdated={TERMS_LAST_UPDATED}
sections={termsSections}
description={<span>为了保障您的合法权益,请您仔细阅读以下条款。</span>}
sections={getTermsSections(t)}
description={<span>{t('terms.description')}</span>}
/>
);
}