You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Check for port conflict and exit with message if found
78
87
if(apiPortChangeNeeded||webPortChangeNeeded){
79
-
letmessage=`The currently configured ports for the development server are unavailable. Suggested changes to your ports, which can be changed in redwood.toml, are:\n`
80
-
message+=apiPortChangeNeeded
81
-
? ` - API to use port ${apiAvailablePort} instead of your currently configured ${apiPreferredPort}\n`
82
-
: ``
83
-
message+=webPortChangeNeeded
84
-
? ` - Web to use port ${webAvailablePort} instead of your currently configured ${webPreferredPort}\n`
85
-
: ``
86
-
message+=`\nCannot run the development server until your configured ports are changed or become available.`
87
-
exitWithError(undefined,{
88
-
message,
89
-
})
88
+
constmessage=[
89
+
'The currently configured ports for the development server are',
90
+
'unavailable. Suggested changes to your ports, which can be changed in',
91
+
'redwood.toml, are:\n',
92
+
apiPortChangeNeeded&&` - API to use port ${apiAvailablePort} instead`,
93
+
apiPortChangeNeeded&&'of your currently configured',
94
+
apiPortChangeNeeded&&`${apiPreferredPort}\n`,
95
+
webPortChangeNeeded&&` - Web to use port ${webAvailablePort} instead`,
96
+
webPortChangeNeeded&&'of your currently configured',
97
+
webPortChangeNeeded&&`${webPreferredPort}\n`,
98
+
'\nCannot run the development server until your configured ports are',
0 commit comments