File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
packages/react-email/src/utils/preview Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " react-email " : patch
3
+ ---
4
+
5
+ dev server erroring when trying to startup with port already being used
Original file line number Diff line number Diff line change @@ -43,9 +43,6 @@ export const startDevServer = async (
43
43
const previewServerLocation = await getPreviewServerLocation ( ) ;
44
44
const previewServer = createJiti ( previewServerLocation ) ;
45
45
46
- const { default : next } =
47
- await previewServer . import < typeof import ( 'next' ) > ( 'next' ) ;
48
-
49
46
devServer = http . createServer ( ( req , res ) => {
50
47
if ( ! req . url ) {
51
48
res . end ( 404 ) ;
@@ -137,6 +134,13 @@ export const startDevServer = async (
137
134
) ,
138
135
} ;
139
136
137
+ const next = await previewServer . import < typeof import ( 'next' ) [ 'default' ] > (
138
+ 'next' ,
139
+ {
140
+ default : true ,
141
+ } ,
142
+ ) ;
143
+
140
144
const app = next ( {
141
145
// passing in env here does not get the environment variables there
142
146
dev : false ,
You can’t perform that action at this time.
0 commit comments