R
Railway•14mo ago
lgnardi

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:
you gotta redeploy both builder and viewer services since they use domains from each other
Jump to solution
31 Replies
Percy
Percy•14mo ago
Project ID: N/A
Brody
Brody•14mo ago
who's typebot template are you using?
lgnardi
lgnardi•14mo ago
N/A I'm actually using my own, @Brody
Brody
Brody•14mo ago
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
lgnardi
lgnardi•14mo ago
I'm sorry, Brody, I misunderstood you. That's exactly the template I'm currently using.
Brody
Brody•14mo ago
then you should just need to redeploy the builder and viewer services
lgnardi
lgnardi•14mo ago
The only place I need to add the custom domain to is the Viewer block?
Brody
Brody•14mo ago
yeah, after all that is the only domain a user would ever visit
lgnardi
lgnardi•14mo ago
Awesome, I'll try to redeploy right now
Solution
Brody
Brody•14mo ago
you gotta redeploy both builder and viewer services since they use domains from each other
lgnardi
lgnardi•14mo ago
@Brody, thank you very much for your help and attention, it worked perfectly! 😄
Brody
Brody•14mo ago
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
lgnardi
lgnardi•14mo ago
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!
Brody
Brody•14mo ago
thank you for your kind words
lgnardi
lgnardi•14mo ago
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!
No description
Brody
Brody•14mo ago
I can certainly try, though I've never used giphy before do you you already have a giphy api key on hand?
lgnardi
lgnardi•14mo ago
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.
Brody
Brody•14mo ago
I mean that definitely does look like an api key might not be the best idea to share it around though
lgnardi
lgnardi•14mo ago
Oh hahaha
Brody
Brody•14mo ago
did you get it from the developers dashboard of giphy?
lgnardi
lgnardi•14mo ago
That's right
Brody
Brody•14mo ago
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 services
lgnardi
lgnardi•14mo ago
No description
lgnardi
lgnardi•14mo ago
No description
Brody
Brody•14mo ago
yeah looks good to me, railway should have auto redeployed those two services?
lgnardi
lgnardi•14mo ago
No description
Brody
Brody•14mo ago
awesome
lgnardi
lgnardi•14mo ago
You're the man! Thank you very much once again!
Brody
Brody•14mo ago
of course, I'm always here if you need any more help in the future
lgnardi
lgnardi•14mo ago
Have a great night!
Brody
Brody•14mo ago
you as well!
Want results from more Discord servers?
Add your server