Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to create a build for self-hosting? #681

Open
varugasu opened this issue Dec 4, 2024 · 1 comment
Open

How to create a build for self-hosting? #681

varugasu opened this issue Dec 4, 2024 · 1 comment

Comments

@varugasu
Copy link

varugasu commented Dec 4, 2024

When running npm build, it will create a build/plugin-flex-ts-template-v2.js, but this alone is not enough for self-hosting a Flex instance.

Looking at @twilio/flex-plugin-scripts/dev_assets/ I can see some assets and index.html that give me a direction on how a Flex Instance would work, but it fails to call /plugins since this doesn't exist with the production build.

Is there any official documentation on how to self-host? I tried searching on Twilio official docs and I didn't find anything.

@dremin
Copy link
Contributor

dremin commented Dec 9, 2024

Hi @varugasu! Normally with self-hosted Flex you wouldn't use plugins; rather, you would integrate the code from the plugin into your Flex application code base. However, you can enable plugins within self-hosted Flex if you'd like, and at that point you can use plugins that were deployed via all the standard processes for hosted Flex. To do so, enable the pluginService flag within your appConfig.js. More info regarding that flag and appConfig.js are available here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants