You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm trying to create a static-site on-demand API using hapi.js to power the API & nuxt.js as the static-site generator but hitting some blockers….
Here's my setup:
The API takes a POST payload
Based on the payload the API dynamically creates the generate.routes array (passing payloads in for each route)
Calls generate() to create the static site in ./dist
Issue:
This API is potentially going to be hammered - building a lot of individual content pages and pushing them to S3 buckets. All generated sites going to the ./dist directory is a problem - I currently have an isGenerating flag to prevent multiple generate calls, forcing the client to re-try the API.
Is using Nuxt as a static-site generator on-demand a ridiculous idea?
If (hopefully) not, are there ways of managing the output better. Potentially streaming straight to an S3 bucket?
Should the generator be able to handle parallel builds?
Thanks in advance,
James
This question is available on Nuxt.js community (#c2)
The text was updated successfully, but these errors were encountered:
Cross-post from nuxt.js/issues/#2370 but this repo also seems applicable…
Hi, I'm trying to create a static-site on-demand API using hapi.js to power the API & nuxt.js as the static-site generator but hitting some blockers….
Here's my setup:
generate.routes
array (passing payloads in for each route)generate()
to create the static site in./dist
Issue:
This API is potentially going to be hammered - building a lot of individual content pages and pushing them to S3 buckets. All generated sites going to the
./dist
directory is a problem - I currently have anisGenerating
flag to prevent multiple generate calls, forcing the client to re-try the API.Thanks in advance,
James
The text was updated successfully, but these errors were encountered: