Skip to content

Commit

Permalink
Small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
zoey-kaiser committed May 4, 2023
1 parent ccba82f commit 9050df3
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const { status, data } = client.value?.host.nuxt.vueApp.config.globalProperties?
<div class="m-3">
<NCard class="p-3">
Status: {{ status }} <br>
Username : {{ data ? data.username : 'unknown' }}
Username : {{ data ? data.name : 'unknown' }}
</NCard>
</div>
</div>
Expand Down
28 changes: 27 additions & 1 deletion playground-authjs/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
import { resolve } from 'path'
import { defineNuxtModule } from '@nuxt/kit'
import { startSubprocess } from '@nuxt/devtools-kit'

export default defineNuxtConfig({
modules: ['../src/module.ts'],
modules: [
'../src/module.ts',
'@nuxt/devtools',
defineNuxtModule({
setup (_, nuxt) {
if (!nuxt.options.dev) {
return
}

startSubprocess(
{
command: 'npx',
args: ['nuxi', 'dev', '--port', '3300'],
cwd: resolve(__dirname, '../client')
},
{
id: 'nuxt-auth:client',
name: 'Auth DevTools'
}
)
}
})
],
auth: {
provider: {
type: 'authjs'
Expand Down
4 changes: 2 additions & 2 deletions playground-local/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ export default defineNuxtConfig({
cwd: resolve(__dirname, '../client')
},
{
id: 'my-module:client',
name: 'My Module Client Dev'
id: 'nuxt-auth:client',
name: 'Auth DevTools'
}
)
}
Expand Down

0 comments on commit 9050df3

Please sign in to comment.