File tree 1 file changed +0
-14
lines changed
1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -192,20 +192,6 @@ export default class NextNodeServer extends BaseServer<
192
192
this . isDev = isDev
193
193
this . sriEnabled = Boolean ( options . conf . experimental ?. sri ?. algorithm )
194
194
195
- // @ts -expect-error internal field not publicly exposed
196
- const isTurbopackBuild = this . nextConfig . experimental ?. isTurbopackBuild
197
- if ( ! isDev && typeof isTurbopackBuild !== 'undefined' ) {
198
- if ( process . env . TURBOPACK && ! isTurbopackBuild ) {
199
- throw new Error (
200
- `Invariant: --turbopack is set but the build used Webpack`
201
- )
202
- } else if ( ! process . env . TURBOPACK && isTurbopackBuild ) {
203
- throw new Error (
204
- `Invariant: --turbopack is not set but the build used Turbopack. Add --turbopack to "next start".`
205
- )
206
- }
207
- }
208
-
209
195
/**
210
196
* This sets environment variable to be used at the time of SSR by head.tsx.
211
197
* Using this from process.env allows targeting SSR by calling
You can’t perform that action at this time.
0 commit comments