Hello @Phil and thank you for the reply!
Actually is there a reason, I will try to explain. I've made an online course where we make our own JS, app.js with express and we use Prismic as (headless) CMS. You can take a look on this repo, maybe you can understand it better afterwards: GitHub - LunacTec/floral: This is the result of following and modifiying the Bizarro's awwwards course! Hope you like it (this is the end code from the course)
I was happy that I would be able to use Prismic (specially for its multilingual feature). My problem now is that, for example, I would like to "generate a website" from time to time, like every half a year, for example. Then I would be able to host those files (for free) on Netlify or on a shared PHP hosting.
The main reason I want to use the "shared hosting" is because I am using wordpress to have a "school management backoffice" (just to have the school/students data on the wp-admin and not to have the "public website" in wp).
I would like then, to use this "code from the repo" and to be able to generate the "public website" and host on the same server as that "school backoffice", without having to have an extra special dedicate nodejs server for the "public website". Does it makes sense?
The main point of this course was to build a SPA website, without refresh and with page transitions. I am pretty sure I could do the same with Eleventy, but I would rather keep using this "boilerplate from the course".
I've been looking for 2 weeks for some examples with prismic and webpack, but I can't really find any help or example code on how to handle the
data from prismic. I've been realizing this might be a tuff task to do. What's your thoughts?