-
-
Notifications
You must be signed in to change notification settings - Fork 131
fix: update next template with getStaticPaths #292
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
Conversation
Hi, do you have any idea when this might be merged ? Both mercure integration, pagination and staticPath are very interesting and much needed for the generator. If something is missing, i'd gladly help if i can |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job!
const response = await fetch("/{{{name}}}"); | ||
|
||
return { | ||
paths: response.data["hydra:member"].map(({{{lc}}}) => `${ {{~lc}}['@id'] }/edit`), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about the second page etc? Shouldn't we not pre-generate this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in this commit, but not really sure about what I've done 😆
Thanks Vincent! |
Uh oh!
There was an error while loading. Please reload this page.