1 min read
You now have more flexible access and improved limits for environment variables from Edge Functions and Middleware:
The max environment variable size is now 64KB instead of 5KB, same as Serverless Functions.
Other than the reserved names, there are no additional restrictions to name environment variables.
Accessing
process.env
is no longer restricted to be statically analyzable. This means that, for example, you can now compute variable names such asprocess.env[`${PREFIX}_SECRET`]
.
Check out the documentation to learn more.