mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
This ensures we apply the middleware layer when in the node runtime so that `server-only` imports are properly handled. Also ensures our test suite includes this condition for `edge` and `node` runtimes. Fixes: https://github.com/vercel/next.js/issues/75904
6 lines
83 B
JavaScript
6 lines
83 B
JavaScript
import 'server-only'
|
|
|
|
export async function getSomeData() {
|
|
return 'some data'
|
|
}
|