Skip to content

Commit c53b585

Browse files
committed
fix:vercel4
1 parent ced875f commit c53b585

File tree

2 files changed

+50
-1
lines changed

2 files changed

+50
-1
lines changed

Diff for: controllers/root.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default (fastify, options, done) => {
99
const files = readdirSync(options.rootDir);
1010
// console.log(files);
1111
if (process.env.VERCEL) {
12-
readmePath = path.join(options.rootDir, './README.md');
12+
readmePath = path.join(options.rootDir, './public/README.md');
1313
} else {
1414
for (const file of files) {
1515
if (/^readme\.md$/i.test(file)) {

Diff for: public/README.md

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# drpyS(drpy-node)
2+
3+
nodejs作为服务端的drpy实现。全面升级异步写法
4+
5+
* [本地配置接口-动态本地](/config)
6+
* [本地配置接口-动态外网/局域网](/config/1)
7+
* [本地配置接口-静态](/index)
8+
* [代码加解密工具](/admin/encoder)
9+
* [V我50支付凭证生成器](/authcoder?len=10&number=1)
10+
* [接口压测教程](/docs/httpTest.md)
11+
* [央视点播解析工具](/proxy/央视大全[官]/index.html)
12+
13+
## 更新记录
14+
15+
### 20241213
16+
17+
更新至V1.0.10
18+
19+
1. 替换axios单文件为node库
20+
2. drpyS支持异步导入模块
21+
22+
[点此查看完整更新记录](docs/updateRecord.md)
23+
24+
## 基础框架
25+
26+
todo:
27+
28+
1. js里的源能否去除export开头,保持跟qjs一致
29+
2. js里的源,像一级这种异步js,里面调用未定义的函数,能否不通过函数参数传入直接注入调用
30+
3. 在源的各个函数调用的时候动态注入input、MY_URL等局部变量不影响全局。搞了半天没成功,有点难受,待解决
31+
32+
写源的函数不可以使用箭头函数,箭头函数无法拿到this作用域就没法获取input和MY_URL变量
33+
34+
精简去除的库:
35+
36+
1. axios
37+
2. jsonpath
38+
3. underscore
39+
4. pino-pretty
40+
5. deasync
41+
42+
## 参考资料
43+
44+
* [crypto-js-wasm使用教程](docs/crypto-js-wasm/readme-CN.md)
45+
* [puppeteer使用教程](docs/pupInstall.md)
46+
47+
## 问题说明
48+
49+
1. windows上直接运行index.js可能会发现运行过程中的日志打印出中文乱码。建议通过yarn dev运行或者在package.json里点击dev脚本运行

0 commit comments

Comments
 (0)