If I pay for two users in a space, can I setup different preview URLs for each of the users?
I saw the posts about dynamic preview URLs but they are dynamic w.r.t. page, not w.r.t. users.
Context:
User 1 1 is a content marketer. Will create/edit pages and publish them. Is mapped to production branch of our git repo.
User 2 is a developer. Is mapped to staging branch. Will create custom components on demand, needs to set the preview URL to localhost to debug and when finalized, push/merge to production branch.
Yes, you can set different preview URLs for each user by using the Developer Options in Builder.io. This can be particularly useful for setting different preview environments, such as a localhost preview for developers and a production preview for content marketers.
Here’s how you can set this up:
Open Developer Options:
In the Visual Editor, press Cmd+p or Ctrl+p on windows to open the Developer Options. This action requires permission from the admin or developer to open the dialogue.
Set Preview URL for the Session:
In the Override preview URL host field, enter the preview URL you’d like to use. For example, for a developer, this might be http://localhost:3000, and for a content marketer, it might be your production URL.
Save the Settings:
Click the X to close the dialogue.
This setting will only affect the user who changes this setting for the duration of their session, and it does not affect other developers, teammates, or site visitors.
For using dynamic preview URLs and more advanced configurations, you can refer to details on dynamic preview URLs. Additionally, ensure that you have Advanced Preview URL Logic turned on in the Advanced Settings if needed.