Skip to content

Commit 5111525

Browse files
committed
Remove render server adapter
1 parent 165caad commit 5111525

10 files changed

Lines changed: 203 additions & 282 deletions

File tree

packages/next/src/server/config.ts

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1809,15 +1809,13 @@ export default async function loadConfig(
18091809
}
18101810

18111811
// Original implementation continues below...
1812-
if (!process.env.__NEXT_PRIVATE_RENDER_WORKER) {
1813-
try {
1814-
loadWebpackHook()
1815-
} catch (err) {
1816-
// this can fail in standalone mode as the files
1817-
// aren't traced/included
1818-
if (!process.env.__NEXT_PRIVATE_STANDALONE_CONFIG) {
1819-
throw err
1820-
}
1812+
try {
1813+
loadWebpackHook()
1814+
} catch (err) {
1815+
// this can fail in standalone mode as the files
1816+
// aren't traced/included
1817+
if (!process.env.__NEXT_PRIVATE_STANDALONE_CONFIG) {
1818+
throw err
18211819
}
18221820
}
18231821

packages/next/src/server/dev/hot-reloader-turbopack.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,7 @@ import {
3838
import { PageNotFoundError } from '../../shared/lib/utils'
3939
import { debounce } from '../utils'
4040
import { deleteCache } from './require-cache'
41-
import {
42-
clearAllModuleContexts,
43-
clearModuleContext,
44-
} from '../lib/render-server'
41+
import { clearAllModuleContexts, clearModuleContext } from '../web/sandbox'
4542
import { denormalizePagePath } from '../../shared/lib/page-path/denormalize-page-path'
4643
import { trace } from '../../trace'
4744
import {

packages/next/src/server/lib/render-server.ts

Lines changed: 0 additions & 188 deletions
This file was deleted.

0 commit comments

Comments
 (0)