This is a React Router application generated with Create Fumadocs.
Run development server:
npm run dev # or pnpm dev # or yarn dev
npm run build npm run start:server # SSR (build/server) npm run start:client # static prerender output (build/client)
Notes:
- Static search uses
build/client/search-index.json(generated at build time, includes CJK tokenizer), no server API required.
Set VITE_GA_MEASUREMENT_ID (example: G-XXXXXXXXXX) to enable GA4 pageview tracking (SPA navigations included).
- Set
VITE_GSC_SITE_VERIFICATIONto inject thegoogle-site-verificationmeta tag. GET /sitemap.xmlandGET /robots.txtare available for Search Console discovery.
Tip: start from askaric/.env.example.
Events are sent via GA4 gtag() when VITE_GA_MEASUREMENT_ID is configured.
cta_clicked: adddata-analytics-event="cta_clicked"and optionaldata-analytics-location="..."on a clickable element.site_search: auto-tracked when the client calls/api/search/*?query=...(includesresults_countwhen available).file_downloaded: auto-tracked for<a download>or links ending with common archive/binary extensions.outbound_link_clicked: auto-tracked for links pointing to a different origin.