Skip to content

Commit 9d3d06d

Browse files
committed
Fix next.config.mjs constants.js import
1 parent 4bc12cb commit 9d3d06d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

LEARNING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ By default, Next.js uses Node.js to run the application, which is incompatible w
77

88
Update `next.config.mjs` with the following:
99
```mjs
10-
import { PHASE_PRODUCTION_SERVER } from 'next/constants';
10+
import { PHASE_PRODUCTION_SERVER } from 'next/constants.js';
1111

1212
export default (phase) => {
1313
const isProd = phase === PHASE_PRODUCTION_SERVER;

next.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PHASE_PRODUCTION_SERVER } from 'next/constants';
1+
import { PHASE_PRODUCTION_SERVER } from 'next/constants.js';
22

33
export default (phase) => {
44
const isProd = phase === PHASE_PRODUCTION_SERVER;

0 commit comments

Comments
 (0)