Clone the repository and use enviroment variables #506
-
Hi, someone has experience using the plugin-flex-ts-template-v2 repo with enviromental variables? I am newbie using Typescript and I try to use .env files in production but I am getting undefined. I just cloned the repo and ereased the features that I wasn't interested. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Hi @fabiantorress! If you only need chat transfer, have you tried using the plugin library version instead (accessed via Flex UI > Admin > Plugins > Plugin library tab)? The plugin library version was derived from the template version, so it should be more-or-less the same. If you'd like to go forward with using the template instead: You actually should not need to manually modify the .env files, as the template sets these automatically based on the items existing in your Twilio account. I would suggest following these steps to ensure success:
If you have more questions about how the .env files work and how configuration is managed in the template in general, this docs page describes how it all works. I hope this helps! |
Beta Was this translation helpful? Give feedback.
I didn't fix the undefined serverless_functions_domain that I was getting, but I got it to work using the Flex UI Configuration as the documentation suggested. Thanks @dremin !