Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Generating static sites on-demand with Nuxt.js #9

Closed
jameswragg opened this issue Dec 11, 2017 · 1 comment
Closed

[Question] Generating static sites on-demand with Nuxt.js #9

jameswragg opened this issue Dec 11, 2017 · 1 comment

Comments

@jameswragg
Copy link

jameswragg commented Dec 11, 2017

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:

  1. The API takes a POST payload
  2. Based on the payload the API dynamically creates the generate.routes array (passing payloads in for each route)
  3. 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.

  1. Is using Nuxt as a static-site generator on-demand a ridiculous idea?
  2. If (hopefully) not, are there ways of managing the output better. Potentially streaming straight to an S3 bucket?
  3. Should the generator be able to handle parallel builds?

Thanks in advance,
James

This question is available on Nuxt.js community (#c2)
@pimlie
Copy link
Member

pimlie commented Dec 11, 2017

Lets have the discussion on nuxt's issues as thats probably more helpful for others.

@pimlie pimlie closed this as completed Dec 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants