feat: implement mock data support with API interceptor and update documentation

This commit is contained in:
2026-02-26 02:37:01 +00:00
parent 30501f5f4c
commit 20eaa50935
9 changed files with 410 additions and 5 deletions

3
types/global.d.ts vendored
View File

@@ -155,3 +155,6 @@ interface ProductEntry {
id: string
// ...
}
/** Build-time flag: `true` when built with `MOCK=1`, enables API mock interceptor */
declare const __MOCK__: boolean