File tree 3 files changed +10
-3
lines changed
3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 7
7
8
8
| Statements | Branches | Functions | Lines |
9
9
| --------------------------- | ----------------------- | ------------------------- | ----------------- |
10
- | ![ Statements] ( https://img.shields.io/badge/Coverage-90.57 %25-brightgreen.svg ) | ![ Branches] ( https://img.shields.io/badge/Coverage-80.31 %25-yellow .svg ) | ![ Functions] ( https://img.shields.io/badge/Coverage-92.86%25-brightgreen.svg ) | ![ Lines] ( https://img.shields.io/badge/Coverage-90.57 %25-brightgreen.svg ) |
10
+ | ![ Statements] ( https://img.shields.io/badge/Coverage-90.63 %25-brightgreen.svg ) | ![ Branches] ( https://img.shields.io/badge/Coverage-79.84 %25-red .svg ) | ![ Functions] ( https://img.shields.io/badge/Coverage-92.86%25-brightgreen.svg ) | ![ Lines] ( https://img.shields.io/badge/Coverage-90.63 %25-brightgreen.svg ) |
11
11
12
12
Looking for the old CLI extension? [ nuxt-laravel] ( https://github.com/m2sd/nuxt-laravel/tree/legacy ) .
13
13
Original file line number Diff line number Diff line change @@ -128,8 +128,11 @@ const laravelModule = function (overwrites) {
128
128
to avoid conflicts with dev server` ) ;
129
129
fs_extra_1 . default . removeSync ( config . output . dest ) ;
130
130
}
131
+ const nuxtHost = [ '0.0.0.0' , '127.0.0.1' ] . includes ( `${ nuxtServer . host } ` )
132
+ ? 'localhost'
133
+ : nuxtServer . host ;
131
134
// retrieve dev server URL
132
- const nuxtUrl = new url_1 . URL ( config . nuxt . urlPath , `http${ ! ! nuxtServer . https ? 's' : '' } ://${ nuxtServer . host } :${ nuxtServer . port } ` ) ;
135
+ const nuxtUrl = new url_1 . URL ( config . nuxt . urlPath , `http${ ! ! nuxtServer . https ? 's' : '' } ://${ nuxtHost } :${ nuxtServer . port } ` ) ;
133
136
// try to start artisan server from Laravel path
134
137
utils_1 . logger . debug ( `Nuxt url: ${ nuxtUrl . href } ` ) ;
135
138
utils_1 . logger . debug ( `Laravel url: ${ laravelUrl . href } ` ) ;
Original file line number Diff line number Diff line change @@ -201,10 +201,14 @@ const laravelModule: Module<Options> = function(overwrites) {
201
201
fs . removeSync ( config . output . dest )
202
202
}
203
203
204
+ const nuxtHost = [ '0.0.0.0' , '127.0.0.1' ] . includes ( `${ nuxtServer . host } ` )
205
+ ? 'localhost'
206
+ : nuxtServer . host
207
+
204
208
// retrieve dev server URL
205
209
const nuxtUrl = new URL (
206
210
config . nuxt . urlPath ,
207
- `http${ ! ! nuxtServer . https ? 's' : '' } ://${ nuxtServer . host } :${
211
+ `http${ ! ! nuxtServer . https ? 's' : '' } ://${ nuxtHost } :${
208
212
nuxtServer . port
209
213
} `
210
214
)
You can’t perform that action at this time.
0 commit comments