You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The solution is this
In your godspeed project's package.json add change two commands to include mappings, plugins and configs to be copied from src to dist, and also to be watched
"build": "swc src -d dist && rsync -a --exclude '*.ts' ./src/ ./dist/ && rsync -a --exclude '*.ts' ./mappings/ ./dist/mappings && rsync -a --exclude '*.ts' ./config/ ./dist/config",
"serve": "nodemon --watch src --watch config --watch mappings --watch plugins -e ts,js,yaml,json,.env --exec 'npm run build && npm run preview'",
The solution is this In your godspeed project's package.json add change two commands to include mappings, plugins and configs to be copied from src to dist, and also to be watched
"build": "swc src -d dist && rsync -a --exclude '*.ts' ./src/ ./dist/ && rsync -a --exclude '*.ts' ./mappings/ ./dist/mappings && rsync -a --exclude '*.ts' ./config/ ./dist/config",
"serve": "nodemon --watch src --watch config --watch mappings --watch plugins -e ts,js,yaml,json,.env --exec 'npm run build && npm run preview'",
I guess there is a small issue in the build command. mappings folder will be inside src, so ./src/mappings/ should be mentioned.
Version Information
@godspeedsystems/core package version: "2.2.3"
Current Behavior
I have defined a custom environment variable in config/custom-environment-variables.yaml
f_token: F_TOKEN
The env variable is set in the .env file in the project directory.
F_TOKEN=/dev/F_AUTH_TOKEN
When I am trying to access this variable in the workflow then it is not able to read from config. Below is the workflow:
If I set the variable in the terminal using export command like
export F_TOKEN=/dev/F_AUTH_TOKEN
then it is working fine.Expected Behavior
config should read env variables from .env file also.
Screenshot
The text was updated successfully, but these errors were encountered: