Typebot - Custom domain issue
Hello there! Firstly, I apologize for the lack of knowledge. I've created my first project to use Typebot and would like assistance in using a custom domain. I've followed all the instructions in the Railway guides, but nothing seems to work. I managed to add the custom domain to the project's "Viewer" block, but I don't know how to activate it in Typebot - the original domain provided by Railway remains the only one available, and I don't know how to change it and use the custom domain. Could someone please help me?
Solution:Jump to solution
you gotta redeploy both builder and viewer services since they use domains from each other
31 Replies
Project ID:
N/A
who's typebot template are you using?
N/A
I'm actually using my own, @Brody
my recommendation would be to use my template
https://railway.app/template/CUZ7Dz
it has all the necessary reference variables to use the railway or custom domain without any extra configurations
I'm sorry, Brody, I misunderstood you. That's exactly the template I'm currently using.
then you should just need to redeploy the builder and viewer services
The only place I need to add the custom domain to is the Viewer block?
yeah, after all that is the only domain a user would ever visit
Awesome, I'll try to redeploy right now
Solution
you gotta redeploy both builder and viewer services since they use domains from each other
@Brody, thank you very much for your help and attention, it worked perfectly! 😄
awesome glad my template is working smoothly, and if there's not already a note about this in the templates overview I will be sure to add it
When you mentioned the template, I thought you were referring to the flow template in Typebot. Your work is absolutely flawless, thank you very much for making it available to all of us!
thank you for your kind words
Hello there, @brody192! I'm sorry for bothering you again, but could you please tell me how to integrate the Giphy API in the environment in other to use in my flows? That'd be extremely helpful!
I can certainly try, though I've never used giphy before
do you you already have a giphy api key on hand?
I'm completely out of my league right now, to be quite honest. When I was using Typebot directly through their website, it was already there. I just tried and created one through the Giphy website, but I really don't know it is the right thing.
I mean that definitely does look like an api key
might not be the best idea to share it around though
Oh hahaha
did you get it from the developers dashboard of giphy?
That's right
perfect
in the builder service, set a service variable
NEXT_PUBLIC_GIPHY_API_KEY
to your giphy api key, in the viewer service set a service variable NEXT_PUBLIC_GIPHY_API_KEY
to ${{Builder.NEXT_PUBLIC_GIPHY_API_KEY}}
thats assuming you haven't change the name of the builder service, if you have, update the name in the variable reference accordingly
after this, show me screenshots of the those variables in both the builder and viewer servicesyeah looks good to me, railway should have auto redeployed those two services?
awesome
You're the man! Thank you very much once again!
of course, I'm always here if you need any more help in the future
Have a great night!
you as well!