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

Support node:fs/promises #262

Open
dario-piotrowicz opened this issue Jan 16, 2025 · 0 comments
Open

Support node:fs/promises #262

dario-piotrowicz opened this issue Jan 16, 2025 · 0 comments

Comments

@dario-piotrowicz
Copy link
Contributor

One common need that Next.js applications have is that of interacting with the filesystem.

One particularly common use case even mentioned in the Next.js docs is that of iterating over a collection of MDX and extract data, for example to create a glob index page (ref: #261).

So in order to support that (at runtime, with ISR) we need to have some sort of filesystem's support implemented using some storage solution such as KV or R2.

Since sync fs operations would require very involved changes in our runtime, it's probably enough to just aim to support async fs operations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant