next.js/test/e2e/import-conditions/pages/api/edge-route.ts
edge-route.ts16 lines488 B
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,
  })
}
Quest for Codev2.0.0
/
SIGN IN