Retrigger +onCreateGlobalContext.server.ts, and plugins with added pages #3076
-
|
Hey, I have two questions that are semi-related, both for primarily pre-rendered sites. Plugins with added pagesCombined with the above, a pattern I've been using uses a combination of onCreateGlobalContext, onBeforePrerenderStart, and +data hooks (with an occasional +route function) to render dynamic pages during static site gen. An example is collecting markdown docs and transforming them before rendering, or similarly I collect what I call "functional examples" and place them in the docs. Functional examples are some source code, annotated and attached to content that are then able to be used in docs, e2e tests, etc. I'm about to open source some of the techniques here, and it'd be neat to have a vike plugin for the functional examples along with the docusaurus plugin I was planning. Retriggering +onCreateGlobalContext.server.ts
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
|
Indeed, I didn't thoroughly test HMR back then as I wanted to get +onCreateGlobalContext out the door sooner rather than later. I created a ticket: There are a coupe of higher priorities at the moment so not sure when I'll have time to look into this. But contributions welcome to dig into it. |
Beta Was this translation helpful? Give feedback.
Indeed, I didn't thoroughly test HMR back then as I wanted to get +onCreateGlobalContext out the door sooner rather than later. I created a ticket:
There are a coupe of higher priorities at the moment so not sure when I'll have time to look into this. But contributions welcome to dig into it.