mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
Case was absent from the react-server condition test suite but relevant to double check for an upcoming refactor
16 lines
488 B
TypeScript
16 lines
488 B
TypeScript
import * as react from 'library-with-exports/react'
|
|
import * as serverFavoringBrowser from 'library-with-exports/server-favoring-browser'
|
|
import * as serverFavoringEdge from 'library-with-exports/server-favoring-edge'
|
|
|
|
export const config = {
|
|
runtime: 'experimental-edge',
|
|
}
|
|
|
|
export default function handler() {
|
|
return Response.json({
|
|
react: react.condition,
|
|
serverFavoringBrowser: serverFavoringBrowser.condition,
|
|
serverFavoringEdge: serverFavoringEdge.condition,
|
|
})
|
|
}
|