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

Change URL after compile #412

Open
XEngine opened this issue Aug 18, 2022 · 0 comments
Open

Change URL after compile #412

XEngine opened this issue Aug 18, 2022 · 0 comments

Comments

@XEngine
Copy link

XEngine commented Aug 18, 2022

After making a SDK library using zoid, I setted it up to my webpage, but the URL needs to be change from page to page. Can I change the URL before render the components I've built with zoid ? Because our if a person wanted to use our service, customer needs to put a A Record subdomain into an IP of our service which

for example our service IP is 12.34.56.78
thereforce a customer's subdomain is pointing to subdomain.anotheranotherdomain.com to -> 12.34.56.78
and another customer's sbudomain's to subdomain.anotherdomain.com -> 12.34.56.78

so my componen't url should point to those urls below. Is it possible?

SDK.button({
   url: 'subdomain.anotheranotherdomain.com/service'
   etc..
}).render('#el')

and in another page

SDK.button({
  url: 'subdomain.anotherdomain.com/service',
  etc...
}).render('#el')
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

1 participant