diff --git a/packages/cli/src/run.js b/packages/cli/src/run.js index e6847c5732..9d4979d43c 100644 --- a/packages/cli/src/run.js +++ b/packages/cli/src/run.js @@ -28,7 +28,7 @@ export default async function run (_argv, hooks = {}) { let cmd = await getCommand(argv[0]) // Matching `nuxt` or `nuxt [dir]` or `nuxt -*` for `nuxt dev` shortcut - if (!cmd && (!argv[0] || argv[0][0] === '-' || fs.existsSync(argv[0]))) { + if (!cmd && (!argv[0] || argv[0][0] === '-' || (argv[0] !== 'static' && fs.existsSync(argv[0])))) { argv.unshift('dev') cmd = await getCommand('dev') }