Chukwukammadu Anizoba
11/02/2021, 4:36 PMprocess.env. Cheers!Alex Edwards
11/02/2021, 4:38 PMexternal val process: dynamic
then we have a function that converts process.env from dynamic to Map<String, String> but thats not necessaryChukwukammadu Anizoba
11/02/2021, 4:42 PMexternal val process: dynamic in the server code's file. Unfortunately process.env.PORT doesn't seem to return anything. For reference, here is the structure of my project:
- server <--- project name
- src
- main
- kotlin
- main.kt <--- server code
- .env
And this is the content of my .env file:
PORT=8000Alex Edwards
11/02/2021, 4:49 PMprocess.env contain anything or just not your env variables? Personally I don’t actually run node directly in the build script, its an aws envChukwukammadu Anizoba
11/02/2021, 4:52 PMprocess.env contains all other things except my env variables. I'd imagine this could have to do with where the .env file is placed in the project?Alex Edwards
11/02/2021, 5:05 PMAlex Edwards
11/02/2021, 5:10 PMChukwukammadu Anizoba
11/02/2021, 5:15 PM