fix(console): schema DDL 移出 web root,兜底行为抽进 lib 并锁进 CI
- static/migrate.sql ⇒ schema/migrate.sql(编译期内嵌不变,运行期不在 web root) ⇒ 大小写 / %2E / 尾斜杠 / 双斜杠等路径变体全部拿不到 DDL - 404 与 SPA 兜底从二进制 crate 抽进 lib(src/routes/fallback.rs) ⇒ /api 与 /api/ 统一回 404 JSON,SPA 深链回 index.html - 新增 tests/spa_fallback.rs:6 条断言锁住兜底行为 - README 整段重写为现行 18 实体 CRUD + 鉴权面 + 上游 SPA 托管 - build-frontend.sh 可执行;产物目录缺失时回落 npm 构建路径 - registry::validate() 挪到 PGlite::open 之前,注册表写坏即秒退 - mw.rs 注释点明两套 4xx 形状并存是刻意分歧 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
1 parent
079dcff986
commit
e72345a958
11 files changed
+379
-137
No files matched your search
+3017
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user