mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
de535e4855
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'
|
|
}
|