N
Nuxt3mo ago
TokyoStarz

is there a faster building dev version of nuxt generate

Hi all, I’ve recently been playing with embedding a nuxt website into a golang webserver to use it as an overkill ui framework, but since I run my go app with CompileDaemon (an auto rebuild tool for go) having to wait for the site to nuxt generate is getting a bit annoying. I’m just wondering if there’s a way to generate nuxt in a “dev way” where it watches for file changes, and rebuilding in a quick manner but does not host its own web server. I suspect what I have now being probably the only option, but it would be nice to know if something like this exists
5 Replies
joe_black_unlucky
I would configure a dev route in your golang webserver to point to nuxt dev and then for production generate it
TokyoStarz
TokyoStarzOP3mo ago
I could probably set it up to forward non-api routes to the nuxt web server, that might work The nuxt team just shipped a build cache in experiments, that might actually solve my niche problem
joe_black_unlucky
could you share the link for the release?
Cue
Cue3mo ago
it's in the latest release. https://github.com/nuxt/nuxt/pull/28726
Want results from more Discord servers?
Add your server