What is Edge Runtime
mainThe Edge Runtime is a toolkit designed for framework authors to adopt edge computing and provide open-source tooling built on Web standards. It is intended to be integrated into frameworks (such as Next.js) rather than being used directly in application code.
Key characteristics:
- Web Standards Compliance: Designed to be compliant with standards developed by WinterCG.
- API Subset: It provides a subset of Node.js APIs to ensure compatibility and interoperability across multiple web environments.
- Runtime Engine: In production, it uses the JavaScript V8 engine and does not use Node.js. Consequently, there is no access to Node.js APIs in a production environment.
- Local Development: During local development and testing, the Edge Runtime polyfills Web APIs and ensures compatibility with the Node.js layer.