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

Long running netlifyFiles causes nuxt generate to timeout #25

Open
pelargir opened this issue Mar 15, 2021 · 0 comments
Open

Long running netlifyFiles causes nuxt generate to timeout #25

pelargir opened this issue Mar 15, 2021 · 0 comments

Comments

@pelargir
Copy link
Contributor

If the netlifyFiles function is using async/await to add dynamic config from an API and takes longer than 5 secs to do this, the nuxt generate process will timeout with the following error:

 ⚠ Nuxt Warning                                                                  
                                                                                 
 The command 'nuxt generate' finished but did not exit after 5s                  
 This is most likely not caused by a bug in Nuxt                                 
 Make sure to cleanup all timers and listeners you or your plugins/modules start.
 Nuxt will now force exit                                                        
                                                                                 
 DeprecationWarning: Starting with Nuxt version 3 this will be a fatal error     

I believe the solution involves passing in a callback from Nuxt so Nuxt knows something is still happening during async/await construction of the config. I'm not sure how to implement that, though.

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

1 participant