mirror of
https://github.com/2234839/web-font.git
synced 2026-04-30 13:30:27 +08:00
- 修复 HTTP header 大小写不敏感匹配,解决浏览器上传请求体为空的问题
- 重写 createStreamAfterTarget,修复大文件上传时 body stream 数据流断裂
- 添加 chunked transfer encoding 解码支持
- 读取完 body 后 cancel stream,防止后台循环抛异常炸进程
- 修复 parseHttpRequest 中 split(":") 对含冒号 header value 的错误拆分
- 临时上传同名文件直接覆盖,不再加时间戳前缀
- 移除 tjs (txiki.js) 运行时支持及相关代码
- 安装并配置 vite-plugin-pilot 浏览器测试工具
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
17 lines
353 B
TypeScript
17 lines
353 B
TypeScript
import { defineConfig } from "vite";
|
|
import solid from "vite-plugin-solid";
|
|
import { pilot } from "vite-plugin-pilot";
|
|
|
|
export default defineConfig({
|
|
plugins: [solid(), pilot({ locale: "zh" })],
|
|
server: {
|
|
host: "0.0.0.0",
|
|
proxy: {
|
|
"/api": {
|
|
target: "http://localhost:8087",
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
});
|