https://github.com/fastly/next-compute-js-server
Implementation of Next.js Server class for Fastly Compute JavaScript
https://github.com/fastly/next-compute-js-server
compute-library fastly-oss-tier2
Last synced: 2 months ago
JSON representation
Implementation of Next.js Server class for Fastly Compute JavaScript
- Host: GitHub
- URL: https://github.com/fastly/next-compute-js-server
- Owner: fastly
- License: mit
- Created: 2023-05-09T17:31:52.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2026-02-07T00:24:26.000Z (4 months ago)
- Last Synced: 2026-02-12T14:18:38.394Z (4 months ago)
- Topics: compute-library, fastly-oss-tier2
- Language: TypeScript
- Homepage:
- Size: 1.82 MB
- Stars: 3
- Watchers: 8
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# Next.js Runtime Server on Fastly Compute
This is an implementation of Next.js's BaseServer for
Fastly Compute, and the behavior is modeled highly off of NextNodeServer.
It enables running pages and API routes that target the `nodejs` runtime
on Compute.
NextWebServer (the Edge Runtime version) should be possible to run without
this port.
There is a separate library that corresponds to each release of Next.js,
maintained in separate branches of this library.
The versions of Next.js that this library is compatible with are listed in the
COMPATIBLE_NEXT_VERSIONS constant in `./src/node/function-transform/constants.ts`.
## Usage
This library is typically used with `@fastly/next-compute-js`, to implement the runtime
for pages and API routes that target the `nodejs` runtime. See `@fastly/next-compute-js` for
more details.
## Issues
If you encounter any non-security-related bug or unexpected behavior, please [file an issue][bug]
using the bug report template.
[bug]: https://github.com/fastly/next-compute-js-server/issues/new?labels=bug
### Security issues
Please see our [SECURITY.md](./SECURITY.md) for guidance on reporting security-related issues.
## License
[MIT](./LICENSE).