Back to Writing
NOTESnextjsedge-runtimeopenaiweb-development
Next.js 15 Edge Runtime Configuration
January 27, 2025•Updated Feb 17, 2026
Next.js 15 runs on the Edge runtime by default.
Generally, databases aren't much of an issue, but when fetching OpenAI's API, since it only supports Node:
export const runtime = 'nodejs'
You need to specify the Node runtime this way.