yuhangch / yuhang.ch

Yuhang's Site
https://next.yuhang.ch
0 stars 1 forks source link

本地npm install后运行报错 #1

Open meteorain opened 4 days ago

meteorain commented 4 days ago

astro v4.16.10 ready in 6193 ms

┃ Local http://localhost:4321/ ┃ Network use --host to expose

19:47:01 [ERROR] [MiddlewareCantBeLoaded] An unknown error was thrown while loading your middleware. Error reference: https://docs.astro.build/en/reference/errors/middleware-cant-be-loaded/ Stack trace: at C:\Users\Vivian\Documents\Astro\yuhang.ch\node_modules\astro\dist\core\middleware\loadMiddleware.js:8:24 [...] See full stack trace in the browser, or rerun with --verbose. Caused by: The following environment variables defined in experimental.env.schema are invalid:

yuhangch commented 2 days ago

看起来是 缺少.env

STUDIO_SECRET=XXXXXXX API_SECRET=XXXXXXX API_URL=https://local.host/

这样的话应该能跑起来,但个别页面有问题