Skip to content

Commit

Permalink
fix: fixed an error that occurred when only remix was executed with…
Browse files Browse the repository at this point in the history
… cli
  • Loading branch information
soartec-lab committed May 11, 2024
1 parent c3716e2 commit 16e3bbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/remix-dev/cli/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export async function run(argv: string[] = process.argv.slice(2)) {
"--tls-key": String,
"--tls-cert": String,

...(argv[0].startsWith("vite:") ||
...(argv[0]?.startsWith("vite:") ||
argv[0] === "reveal" ||
argv[0] === "routes"
? // Handle commands that support Vite's --config flag
Expand All @@ -176,7 +176,7 @@ export async function run(argv: string[] = process.argv.slice(2)) {
"-c": "--command",
}),

...(argv[0].startsWith("vite:")
...(argv[0]?.startsWith("vite:")
? {
// Vite commands
// --config, --force and --port are already defined above
Expand Down

0 comments on commit 16e3bbc

Please sign in to comment.