Add fetch
parameter to entries()
for seamless API integration
#12980
Labels
feature request
New feature or request
Describe the problem
The EntryGenerator's
entries()
function would benefit from having access to SvelteKit's enhancedfetch
, enabling direct integration with API routes during the prerendering process.Current Limitation:
Currently, when using the EntryGenerator pattern with dynamic routes that depend on API data, we need to duplicate the data fetching logic or import it directly from the filesystem. This is both less elegant and diverges from how we normally access data in SvelteKit applications.
Use Case:
Consider this setup:
Benefits:
Describe the proposed solution
Alternatives considered
Importance
would make my life easier
Additional Information
No response
The text was updated successfully, but these errors were encountered: