I just started deploying my static Nuxt website on Netlify, and I am curious if it’s possible to have different deploy settings for a build triggered by a webhook.
Right now, my default build settings are to
nuxt build && nuxt export which is great when making a commit/merge to the main branch in github. However, when a client makes a change from the CMS (in this case Prismic), Nuxt offers the ability to skip the
nuxt build (which compiles the code) and just run
nuxt export (which just creates and populates pages).
My main reasoning for this is that
nuxt build && nuxt export can take 2-3 minutes to build, where as just running
nuxt export can take 30~ seconds, and for just content changes, it can be more efficient.
Maybe I am thinking about this the wrong way, and there’s a better way? I would appreciate any insight you have.