File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ function resolveLaravelPlugin(pluginConfig: Required<PluginConfig>): LaravelPlug
147147 const hotFile = path . join ( pluginConfig . publicDirectory , 'hot' )
148148
149149 const envDir = resolvedConfig . envDir || process . cwd ( )
150- const appUrl = loadEnv ( '' , envDir , 'APP_URL' ) . APP_URL
150+ const appUrl = loadEnv ( resolvedConfig . mode , envDir , 'APP_URL' ) . APP_URL ?? 'undefined'
151151
152152 server . httpServer ?. once ( 'listening' , ( ) => {
153153 const address = server . httpServer ?. address ( )
@@ -341,7 +341,7 @@ function resolveDevServerUrl(address: AddressInfo, config: ResolvedConfig): DevS
341341 const configHost = typeof config . server . host === 'string' ? config . server . host : null
342342 const serverAddress = isIpv6 ( address ) ? `[${ address . address } ]` : address . address
343343 const host = configHmrHost ?? configHost ?? serverAddress
344-
344+
345345 const configHmrClientPort = typeof config . server . hmr === 'object' ? config . server . hmr . clientPort : null
346346 const port = configHmrClientPort ?? address . port
347347
You can’t perform that action at this time.
0 commit comments