Skip to content
This repository was archived by the owner on Dec 30, 2022. It is now read-only.

Commit d843113

Browse files
committed
Added https dev serve options.
1 parent 6c0f29d commit d843113

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

config/vitamin.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
*/
1616
'port' => 3000,
1717

18+
/*
19+
* Use HTTPS when running the dev server. See README.md for setup instructions.
20+
*/
21+
'https' => false,
22+
1823
/*
1924
* The view composer class to use.
2025
*/

src/Console/ViteServeCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function handle(VitaminInterface $vitamin): int
2323
'--host' => $this->host(),
2424
'--port' => $this->option('port') ?? config('vitamin.port'),
2525
'--strictPort' => true,
26-
'--https' => $this->option('https') ?? false,
26+
'--https' => $this->option('https') ?? config('vitamin.https'),
2727
];
2828

2929
$execParams = collect($params)->map(function ($value, $key) {

0 commit comments

Comments
 (0)