Spaces:
Sleeping
Sleeping
Download node_modules/@vue/cli-service/lib/util/resolveClientEnv.js from k-l-lambda/lotus: direct link, hf CLI and curl.
- Browser
- Download file 429 Bytes
-
https://huggingface.co/spaces/k-l-lambda/lotus/resolve/main/node_modules/%40vue/cli-service/lib/util/resolveClientEnv.js
- Command line
-
hf download hf://spaces/k-l-lambda/lotus/node_modules/@vue/cli-service/lib/util/resolveClientEnv.js
-
curl -L -o resolveClientEnv.js https://huggingface.co/spaces/k-l-lambda/lotus/resolve/main/node_modules/%40vue/cli-service/lib/util/resolveClientEnv.js
429 Bytes
| const prefixRE = /^VUE_APP_/ | |
| module.exports = function resolveClientEnv (options, raw) { | |
| const env = {} | |
| Object.keys(process.env).forEach(key => { | |
| if (prefixRE.test(key) || key === 'NODE_ENV') { | |
| env[key] = process.env[key] | |
| } | |
| }) | |
| env.BASE_URL = options.publicPath | |
| if (raw) { | |
| return env | |
| } | |
| for (const key in env) { | |
| env[key] = JSON.stringify(env[key]) | |
| } | |
| return { | |
| 'process.env': env | |
| } | |
| } | |