【发布时间】:2022-01-02 04:30:11
【问题描述】:
如何在 preact 中隐藏 api 密钥,在 react 中我使用了 .env 文件,但不知道如何在 preact 中执行?
index.js?2e9b:8 Uncaught (in promise) ReferenceError: process is not defined
at eval (index.js?2e9b:8)
at Generator.next (<anonymous>)
at asyncGeneratorStep (index.js:5)
at _next (index.js:7)
at eval (index.js:7)
at new Promise (<anonymous>)
at eval (index.js:7)
at getSeriesInfo (index.js?2e9b:7)
at Object.eval [as __] (index.js?2e9b:14)
at j (index.js?a178:361)
【问题讨论】:
标签: api process environment-variables preact