chore: be flexible about the path to libparakeet sdk

This commit is contained in:
鲁树人 2023-05-21 14:34:27 +01:00
parent 7083e52eb7
commit 9630e56a96
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ pnpm start
/libparakeet-js
```
若为不同目录,你需要调整 `vite.config.ts` 的 `server.fs.allow` 区段并加入新的路径
若为不同目录,你需要调整 `LIB_PARAKEET_JS_DIR` 环境变量到仓库目录,然后再启动 vite 项目
[libparakeet-js-doc]: https://github.com/parakeet-rs/libparakeet-js/blob/main/README.MD

View File

@ -33,7 +33,7 @@ export default defineConfig({
'node_modules',
// Allow pnpm to link.
'../libparakeet-js',
process.env.LIB_PARAKEET_JS_DIR || '../libparakeet-js',
],
},
},