Testers needed: Whitelabel plugin for bubble app with multiple domains

@cristian1 I tested out the login ( check the test app on top ). It works. You can find in the editor how you should code it. Also looked at the subpage that works to (but you need to give it a path and not a page name like /sub-page. Corrected that in the manual). Still waiting on bubble to approve.

@gaimed Thanks for your help. Login is now working. I was using ā€œan element has an errorā€ instead of the general ā€œunhandled error occursā€. I checked in your editor and it was easy to see my mistake.
But I still have problems with the bubble path field. It goes to the correct page, but parameters are not working. I tried to send it to /destino/tangent-1576882816530x273879131354737300 and it just goes to destino. I must be missing something.

1 Like

Yes. Path is done by bubble on client side. There is no arguments on clientside because of the whitelabel. So you need to use the url (will be your whitelabel url) to figure out what record to load. I think its website_url

Ill clarify this in the docs as well.

I am adding some new features. To map multiple pages.

Like domain.com/ => index
Domain.com/pricing => domain_1_pricing
Etc.

This will allow you to create custom paths for multiple pages. Also will be adding a way to update existing whitelabeled domains

Thanks for your help, I finally managed to solve it.
I had to use ā€œwebsite_home_URLā€ and a bit of REGEX to extract the subdomain from that path. The regex part was quite difficult for me, but I finally got it. So it seems that your plugin could be useful, I was doing that part with an iframe, but your solution is much cleaner. Iā€™ll have to talk to my hosting provider to see if thereā€™s a way to dynamically create DNS records.

Hello @gaimed, Iā€™ve found a new problem. I canā€™t upload files if Iā€™m using the new domain. I have a couple of Picture Uploaders in my app, and they work ok if I use the ā€œnormalā€ bubble domain. But when using the new whitelabel domain, I get an error (Sorry, we ran into a temporary bug and canā€™t complete your request. Weā€™ll fix it as soon as we can; please try again in a bit!).
Any idea why this could be happening and how to fix it?
Thanks!

1 Like

Pretty dope! ā€¦ Super useful.

Will monitor this as soon as you deem it stable @gaimed and wish you best of luck!

Thnx for letting me know. Ill test it and try to find a bugfix. I have a action get domain from host in the plugin. It allows to get the domain from the website home url.

1 Like

Hi @cristian1 I am also not able to upload files/images. I think we will need to create a custom plugin that uses the data api to upload images/files or use something that uploads to s3 directly. I will try to ask bubble if they are able to fix the errorā€¦ But I donā€™t think they willā€¦

ok @gaimed, letā€™s see if you manage to solve it somehow with the help of bubble.
Hope that @emmanuel can say something. If bubble wants to be useful for SaaS projects, we need to find a way to have custom domains for each of our clients as most SaaS do.
Thanks!

1 Like

I found a workaround. It will cost a couple of hours maybe (or less) for a plugin developer to create it (I dont have the time)

Its easy actually:

  • create a file upload / image upload element (using the plugin)
  • get the base 64 of the file, file name (and optionally the id to attach it if its private file)
  • make a axios call to the original bubble app (by the plugin)
  • give back the file path to s3 back (and preview image inside the element if its a image)
  • allow for dropping files/images
  • allow for selecting multiple files

So the action or element will have to take the bubble app name (to make original requests to the bubble app).

Inspired by: https://bubble.io/plugin/ez-file-uploader-1563788967815x673444000197247000

I am afraid as bubble dev team is working on lot of stuff that they wont be able to prioritize this (or maybe its even to difficult to fix). But the workaround should be able to fix that.

@shawnmi6 @sudsy @nocodeventure @yusaney1 do you guys have time for this? and how much would it cost to create it?

Any updates on the plugin being accepted? Still canā€™t see or find it

Nopeā€¦

Still no update. Waiting for 16 days. Guess bubble team is busy

Any progress on the plug-in yet? Is it still under review? If you need a beta tester, hit me up!

Plugin is live! [new plugin] Whitelabel multiple domains for bubble apps