Hi
Re: Site name = stupefied-lamarr-20c8d9
Up until about a week ago, I was happily using Netlify Dev to develop the above NodeJs/React app, but then all of a sudden, the environment variables stopped showing up in my process.env
Below I have pasted the console log, from my local, Netlify Dev build, showing my entire process.env. I have several environment variables set in the UI - for example MONGO_URI_DEV and MAIN_URI - but none of them are in Node’s process.env any longer.
Something must have changed just recently…right?
[BTW I now see there are different deploy contexts I could be using, so my existing environment variables need to be reorganized to use those, but even so, I’m not getting any of them]
Thanks for your help!
Simon
{
ALLUSERSPROFILE: ‘C:\ProgramData’,
APPDATA: ‘C:\Users\simon\AppData\Roaming’,
AWS_DEFAULT_REGION: ‘us-east-1’,
AWS_EXECUTION_ENV: ‘AWS_Lambda_nodejs16.13.2’,
AWS_LAMBDA_FUNCTION_MEMORY_SIZE: ‘625’,
AWS_LAMBDA_FUNCTION_NAME: ‘handler’,
AWS_LAMBDA_FUNCTION_VERSION: ‘1.0’,
AWS_REGION: ‘us-east-1’,
BRANCH: ‘development’,
BUILD_ID: ‘0’,
CACHED_COMMIT_REF: ‘0e5611ff7b6e66d66fca0e294c6a9e8e1fc2775a’,
CHROME_CRASHPAD_PIPE_NAME: ‘\\.\pipe\LOCAL\crashpad_22628_GHLLMWSZZUAVDLSZ’,
COLOR: ‘1’,
COLORTERM: ‘truecolor’,
COMMIT_REF: ‘8fcb33fea09d404478f97385da48428b119b01a0’,
CommonProgramFiles: ‘C:\Program Files\Common Files’,
‘CommonProgramFiles(x86)’: ‘C:\Program Files (x86)\Common Files’,
CommonProgramW6432: ‘C:\Program Files\Common Files’,
COMPUTERNAME: ‘LAPTOP-CQ4QLLFQ’,
ComSpec: ‘C:\WINDOWS\system32\cmd.exe’,
CONTEXT: ‘dev’,
DEPLOY_ID: ‘0’,
DEPLOY_PRIME_URL: ‘https://development--stupefied-lamarr-20c8d9.netlify.app’,
DEPLOY_URL: ‘http://localhost:8888’,
DEPRECATED: ‘Please use the new environment variable endpoints outlined here: Get started with the Netlify API | Netlify Docs’,
DriverData: ‘C:\Windows\System32\Drivers\DriverData’,
EDITOR: ‘notepad.exe’,
EFC_9780: ‘1’,
FPS_BROWSER_APP_PROFILE_STRING: ‘Internet Explorer’,
FPS_BROWSER_USER_PROFILE_STRING: ‘Default’,
GATSBY_TELEMETRY_DISABLED: ‘1’,
GIT_ASKPASS: ‘c:\Users\simon\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\askpass.sh’,
HEAD: ‘development’,
HOME: ‘C:\Users\simon’,
HOMEDRIVE: ‘C:’,
HOMEPATH: ‘\Users\simon’,
INIT_CWD: ‘C:\Simon\code\deepsheet’,
JAVA_HOME: ‘C:\Program Files\AdoptOpenJDK\jdk-8.0.212.04-hotspot’,
LAMBDA_CONSOLE_SOCKET: ‘14’,
LAMBDA_CONTROL_SOCKET: ‘11’,
LAMBDA_RUNTIME_DIR: ‘C:\Simon\code\deepsheet’,
LAMBDA_TASK_ROOT: ‘C:\Simon\code\deepsheet\serverLambda\lambdaFunctions’,
LANG: ‘en_US.UTF-8’,
LANGUAGE: ‘en_US:en’,
LC_ALL: ‘en_US.UTF-8’,
LOCALAPPDATA: ‘C:\Users\simon\AppData\Local’,
LOGONSERVER: ‘\\LAPTOP-CQ4QLLFQ’,
NETLIFY_DEV: ‘true’,
NETLIFY_LOCAL: ‘true’,
NEXT_TELEMETRY_DISABLED: ‘1’,
NODE: ‘C:\Program Files\nodejs\node.exe’,
NODE_ENV: ‘development’,
NODE_PATH: ‘C:\Simon\code\deepsheet\node_modules’,
npm_command: ‘run-script’,
npm_config_cache: ‘C:\Users\simon\AppData\Local\npm-cache’,
npm_config_globalconfig: ‘C:\Users\simon\AppData\Roaming\npm\etc\npmrc’,
npm_config_global_prefix: ‘C:\Users\simon\AppData\Roaming\npm’,
npm_config_init_module: ‘C:\Users\simon\.npm-init.js’,
npm_config_local_prefix: ‘C:\Simon\code\deepsheet’,
npm_config_metrics_registry: ‘https://registry.npmjs.org/’,
npm_config_node_gyp: ‘C:\Users\simon\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js’,
npm_config_noproxy: ‘’,
npm_config_prefix: ‘C:\Users\simon\AppData\Roaming\npm’,
npm_config_userconfig: ‘C:\Users\simon\.npmrc’,
npm_config_user_agent: ‘npm/8.3.1 node/v16.13.2 win32 x64 workspaces/false’,
npm_execpath: ‘C:\Users\simon\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js’,
npm_lifecycle_event: ‘dev’,
npm_lifecycle_script: ‘npm run build && netlify dev’,
npm_node_execpath: ‘C:\Program Files\nodejs\node.exe’,
npm_package_json: ‘C:\Simon\code\deepsheet\package.json’,
npm_package_name: ‘parent’,
npm_package_version: ‘1.0.0’,
NUMBER_OF_PROCESSORS: ‘8’,
NVM_HOME: ‘C:\Users\simon\AppData\Roaming\nvm’,
NVM_SYMLINK: ‘C:\Program Files\nodejs’,
OneDrive: ‘C:\Users\simon\OneDrive’,
ORIGINAL_XDG_CURRENT_DESKTOP: ‘undefined’,
OS: ‘Windows_NT’,
Path: ‘C:\Simon\code\deepsheet\node_modules\.bin;C:\Simon\code\node_modules\.bin;C:\Simon\node_modules\.bin;C:\node_modules\.bin;C:\Users\simon\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\run-script\lib\node-gyp-bin;C:\Program Files\AdoptOpenJDK\jdk-8.0.212.04-hotspot\bin;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Git\cmd;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Users\simon\AppData\Roaming\npm;C:\Program Files\nodejs;C:\Users\simon\AppData\Roaming\nvm;C:\Program Files\nodejs;C:\Program Files (x86)\Elm\0.19.1\bin;C:\Users\simon\AppData\Local\Microsoft\WindowsApps;C:\Users\simon\AppData\Local\atom\bin;C:\Users\simon\AppData\Local\GitHubDesktop\bin;C:\Users\simon\AppData\Local\Microsoft\WindowsApps;C:\Users\simon\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files\skaffold\;C:\Program Files (x86)\mongodb-cli-4.4.3\bin;C:\Program Files (x86)\GitHub CLI\;C:\Users\simon\AppData\Roaming\nvm;C:\Program Files\nodejs;’,
PATHEXT: ‘.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL’,
PROCESSOR_ARCHITECTURE: ‘AMD64’,
PROCESSOR_IDENTIFIER: ‘Intel64 Family 6 Model 142 Stepping 10, GenuineIntel’,
PROCESSOR_LEVEL: ‘6’,
PROCESSOR_REVISION: ‘8e0a’,
ProgramData: ‘C:\ProgramData’,
ProgramFiles: ‘C:\Program Files’,
‘ProgramFiles(x86)’: ‘C:\Program Files (x86)’,
ProgramW6432: ‘C:\Program Files’,
PROMPT: ‘$P$G’,
PSModulePath: ‘C:\Users\simon\Documents\WindowsPowerShell\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules’,
PUBLIC: ‘C:\Users\Public’,
PULL_REQUEST: ‘false’,
REPOSITORY_URL: ‘GitHub - simonrumi/deepsheet’,
SESSIONNAME: ‘Console’,
SITE_ID: ‘ed91e416-971c-419c-9c42-b091b8351ee1’,
SITE_NAME: ‘stupefied-lamarr-20c8d9’,
SystemDrive: ‘C:’,
SystemRoot: ‘C:\WINDOWS’,
TEMP: ‘C:\Users\simon\AppData\Local\Temp’,
TERM_PROGRAM: ‘vscode’,
TERM_PROGRAM_VERSION: ‘1.78.2’,
TMP: ‘C:\Users\simon\AppData\Local\Temp’,
TZ: ‘America/Los_Angeles’,
URL: ‘http://localhost:8888’,
USERDOMAIN: ‘LAPTOP-CQ4QLLFQ’,
USERDOMAIN_ROAMINGPROFILE: ‘LAPTOP-CQ4QLLFQ’,
USERNAME: ‘simon’,
USERPROFILE: ‘C:\Users\simon’,
VSCODE_GIT_ASKPASS_EXTRA_ARGS: ‘–ms-enable-electron-run-as-node’,
VSCODE_GIT_ASKPASS_MAIN: ‘c:\Users\simon\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\askpass-main.js’,
VSCODE_GIT_ASKPASS_NODE: ‘C:\Users\simon\AppData\Local\Programs\Microsoft VS Code\Code.exe’,
VSCODE_GIT_IPC_HANDLE: ‘\\.\pipe\vscode-git-1ede5a78f4-sock’,
VSCODE_INJECTION: ‘1’,
windir: ‘C:\WINDOWS’,
WWISEROOT: ‘C:\Program Files (x86)\Audiokinetic\Wwise 2021.1.10.7883’,
WWISESDK: ‘C:\Program Files (x86)\Audiokinetic\Wwise 2021.1.10.7883\SDK’,
_HANDLER: ‘auth.handler’
}