Primo is great for editing and I understand it can deploy a static site,
but I was hoping to use Primo as a dynamic site, similar to Wordpress.
I think it would be great if Primo had a view mode.
That way editor can toggle into edit mode to make changes and the changes will be reflected in the view mode in real time, served by Primo and without having to deploy.
Hey @mingfang Sounds like youâre mostly wanting to be able to preview your changes. Itâs not documented, but you can preview any page by appending â?previewâ to it in the address bar (e.g. someprimoserver.com/thesite/about?previewâ).
As far as being server-side rendered so changes donât have to be deployed - I agree it would remove some friction from getting updates live, but it would likely require a lot of complexity, you wouldnât be able to manage multiple sites from a single server, and page performance would suffer. SSR is really an advantage for large sites with super frequent changes (and even then I think static can be better).
@mateo
Thanks for telling me about the preview option.
Thatâs very useful.
I was hoping to use Primo as a general app âserverâ and not as a static code generator.
That way I can replace my existing SPAs(not content/blogs but apps with business logic) with Primo.
Interesting. I wouldnât recommend it for most web applications compared to something more robust like SvelteKit, but I have created a couple CRUD applications with it using Supabase. What kind of applications are you building?
In addition to CRUD apps, I want to build dashboards like this
I think if the output of Primo is actually a SvelteKit app, instead of a static site, then it will enable limitless capabilities.
Interesting idea! Integrating more closely with SvelteKit is on the roadmap.
Can I ask what makes Primo more attractive for an app like this as opposed to SvelteKit & VSCode? Considering there isnât much content. Would it just be displaying information from other APIs, or content from the CMS? And would users be inputting information & need user accounts?
My hope is for Primo to compliment from existing frontend workflow.
I build and test individual Svelte components using âtraditionalâ tools like VSCode.
Then I would use Primo to import those components and for page layout.
I think of Primo as the âlast mileâ; enabling a similar level of just in time customization that our business users have with their favorite tool, Excel.
Primo has the right combination of Wysiwyg editing of layout, copy, styles, fields, etc, and code editing.