Skip to content

Commit

Permalink
chore: move --no-qr to command instead of package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Nov 30, 2023
1 parent 3272e98 commit edfbfc5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composables/web-container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export async function mountPlayground(
}

play.status = 'start'
processDev = await wc.spawn('pnpm', ['run', 'dev'])
processDev = await wc.spawn('pnpm', ['run', 'dev', '--no-qr'])
play.stream = processDev.output
}

Expand Down
6 changes: 5 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
modules: [
'@vueuse/nuxt',
'@unocss/nuxt',
Expand Down Expand Up @@ -48,4 +47,9 @@ export default defineNuxtConfig({
titleTemplate: '%s - Nuxt Playground',
},
},
devtools: {
// This does not work because it conflicts with WebContainer's headers requirement
// Disabled for now and will find a solution later
enabled: false,
},
})
2 changes: 1 addition & 1 deletion templates/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"private": true,
"packageManager": "[email protected]",
"scripts": {
"dev": "nuxt dev --no-qr",
"dev": "nuxt dev",
"prepare": "nuxt prepare"
},
"dependencies": {
Expand Down

0 comments on commit edfbfc5

Please sign in to comment.