codesandbox 中的 Vue .env 变量
Vue .env variable in codesandbox
如何在 Codesandbox 中使用 .env 变量?
现在我在使用带有 process.env 的 .env 文件时出现此错误:
'process' 未定义 - eslint
我尝试在 .eslintrc 文件中将过程声明为 true:https://eslint.org/docs/user-guide/configuring
为了使用环境变量,您需要使用容器沙箱,因此它有一个实际的服务器。尝试使用像 Node 这样的模板并使用 Vue。
在我们的文档中有更多关于在 CodeSandbox 上使用秘密的信息 https://codesandbox.io/docs/secrets, as well as the difference between container and client sandboxes (https://codesandbox.io/docs/environment)
如何在 Codesandbox 中使用 .env 变量? 现在我在使用带有 process.env 的 .env 文件时出现此错误: 'process' 未定义 - eslint
我尝试在 .eslintrc 文件中将过程声明为 true:https://eslint.org/docs/user-guide/configuring
为了使用环境变量,您需要使用容器沙箱,因此它有一个实际的服务器。尝试使用像 Node 这样的模板并使用 Vue。
在我们的文档中有更多关于在 CodeSandbox 上使用秘密的信息 https://codesandbox.io/docs/secrets, as well as the difference between container and client sandboxes (https://codesandbox.io/docs/environment)