mirror of
https://git.unlock-music.dev/um/um-react.git
synced 2024-11-24 00:42:16 +00:00
chore: be flexible about the path to libparakeet sdk
This commit is contained in:
parent
0d0cc810a3
commit
13e9e8142a
@ -38,7 +38,7 @@ pnpm start
|
|||||||
/libparakeet-js
|
/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
|
[libparakeet-js-doc]: https://github.com/parakeet-rs/libparakeet-js/blob/main/README.MD
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ export default defineConfig({
|
|||||||
'node_modules',
|
'node_modules',
|
||||||
|
|
||||||
// Allow pnpm to link.
|
// Allow pnpm to link.
|
||||||
'../libparakeet-js',
|
process.env.LIB_PARAKEET_JS_DIR || '../libparakeet-js',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user