Skip to content

Commit

Permalink
adress comments
Browse files Browse the repository at this point in the history
* * * * * test -n "$(pgrep "Steam Link|Moonlight")" && /sbin/ifconfig awdl0 down || /sbin/ifconfig awdl0 up
  • Loading branch information
feedthejim committed Sep 8, 2023
1 parent 791dff6 commit 5e43108
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/next/src/server/require-hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ const hookPropertyMap = new Map()

let aliasedPrebundledReact = false

// that env var is only set in app router

const resolve = process.env.NEXT_MINIMAL
? // @ts-ignore
__non_webpack_require__.resolve
Expand Down Expand Up @@ -128,6 +126,7 @@ if (process.env.NODE_ENV !== 'development' && !process.env.TURBOPACK) {
mod.prototype.require = function (request: string) {
if (request.endsWith('.shared-runtime')) {
const currentRuntime = `${
// this env var is only set in app router
!!process.env.__NEXT_PRIVATE_PREBUNDLED_REACT
? 'next/dist/compiled/next-server/app-page.runtime'
: 'next/dist/compiled/next-server/pages.runtime'
Expand Down

0 comments on commit 5e43108

Please sign in to comment.