Skip to content

Commit fbb042b

Browse files
committed
chore(playground): add basic auth
1 parent a33371f commit fbb042b

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

playground/nuxt.config.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,22 @@ export default defineNuxtConfig({
22
devtools: { enabled: true },
33
modules: [
44
'../src/module',
5-
'@nuxt/ui'
5+
'@nuxt/ui',
6+
'@kgierke/nuxt-basic-auth'
67
],
78
ui: {
89
icons: ['heroicons', 'simple-icons']
910
},
1011
hub: {
1112
// local: true
13+
},
14+
basicAuth: {
15+
enabled: process.env.NODE_ENV === 'production',
16+
users: [
17+
{
18+
username: 'admin',
19+
password: process.env.NUXT_ADMIN_PASSWORD || 'admin'
20+
}
21+
]
1222
}
1323
})

playground/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
},
1010
"dependencies": {
1111
"@iconify-json/simple-icons": "^1.1.92",
12-
"@nuxthub/core": "latest",
12+
"@kgierke/nuxt-basic-auth": "^1.4.0",
1313
"@nuxt/ui": "^2.13.0",
14+
"@nuxthub/core": "latest",
1415
"drizzle-orm": "^0.29.3",
1516
"nuxt": "latest",
1617
"nuxt-auth-utils": "^0.0.18"

pnpm-lock.yaml

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)