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

Running paperbits without publishing #212

Closed
joshua-mng opened this issue Dec 2, 2022 · 3 comments
Closed

Running paperbits without publishing #212

joshua-mng opened this issue Dec 2, 2022 · 3 comments

Comments

@joshua-mng
Copy link

joshua-mng commented Dec 2, 2022

Is it possible to run paperbits based website without first publishing to static assets?

Like paperbit will render components at runtime in the browser (like how designer is doing it, but without designer features).

If possible, then how should I do that, thank you.

@azaslonov
Copy link
Member

Hi @joshua-mng, are you talking about something like a "preview" mode, like with this button on demo.papaerbits.io:
image

If yes, there is no out-of-the-box support for that, but looking at the "preview" mode implementation you can get the idea how to achieve the same (just look for ViewManagerMode.preview constant usage). This probably means that in your production websites, you'll have to dynamically load the source JSON and render everything in browser making it a full-blown SPA. The one problem with SPA, however, is that search engines won't be able to crawl and hence index such websites.

@joshua-mng
Copy link
Author

Yeah, Something like that preview mode. If I can combine it with server side rendering, then SEO will be no problem. Could be separate paperbits-spa projects. Thank you very much.

@azaslonov
Copy link
Member

@joshua-mng, closing the issue, since the question answered. Please feel free to re-open shall you need further assistance.

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

2 participants