diff --git a/src/detectors/nuxt.js b/src/detectors/nuxt.js index 12df644728e..f6588cf7962 100644 --- a/src/detectors/nuxt.js +++ b/src/detectors/nuxt.js @@ -9,23 +9,23 @@ module.exports = function() { /** everything below now assumes that we are within vue */ const possibleArgsArrs = scanScripts({ - preferredScriptsArr: ['start', 'dev', 'run'], - preferredCommand: 'nuxt start' + preferredScriptsArr: ['dev', 'start'], + preferredCommand: 'nuxt' }) if (possibleArgsArrs.length === 0) { // ofer to run it when the user doesnt have any scripts setup! 🤯 - possibleArgsArrs.push(['nuxt', 'start']) + possibleArgsArrs.push(['nuxt']) } return { - type: 'yarn', + type: 'nuxt', command: getYarnOrNPMCommand(), port: 8888, proxyPort: 3000, env: { ...process.env }, possibleArgsArrs, urlRegexp: new RegExp(`(http://)([^:]+:)${3000}(/)?`, 'g'), - dist: '.nuxt' + dist: 'dist' } }