Skip to content

Commit

Permalink
fix(nextjs): use require("next") since exports.default is no longer p…
Browse files Browse the repository at this point in the history
…rovided (#16497)

(cherry picked from commit 786323d)
  • Loading branch information
jaysoo authored and FrozenPandaz committed Apr 25, 2023
1 parent 7008532 commit a62db8a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/next/src/executors/server/lib/default-server.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import * as express from 'express';
import * as path from 'path';
import next from 'next';
import { NextServerOptions, ProxyConfig } from '../../../utils/types';

/**
Expand All @@ -11,6 +9,7 @@ export async function defaultServer(
settings: NextServerOptions,
proxyConfig?: ProxyConfig
): Promise<void> {
const next = require('next');
const app = next(settings);
const handle = app.getRequestHandler();

Expand Down

0 comments on commit a62db8a

Please sign in to comment.