Skip to content

Commit 3431744

Browse files
committed
fix(deploy): give cwd to nuxi build command
1 parent f830068 commit 3431744

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/deploy.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export default defineCommand({
118118
if (args.dotenv) {
119119
nuxiBuildArgs.push(`--dotenv=${args.dotenv}`)
120120
}
121-
await execa({ stdio: 'inherit', preferLocal: true })`nuxi build ${nuxiBuildArgs}`
121+
await execa({ stdio: 'inherit', preferLocal: true, cwd })`nuxi build ${nuxiBuildArgs}`
122122
.catch((err) => {
123123
if (err.code === 'ENOENT') {
124124
consola.error('`nuxt` is not installed, please make sure that you are inside a Nuxt project.')

0 commit comments

Comments
 (0)