Add internal styleguide page with HTTP Basic Auth

- Create /internal/styleguide route with protected layout
- Add styleguide.vue layout with auth protection
- Configure internal pages auth credentials in .env.example
- Update nuxt.config for internal routes handling
This commit is contained in:
Bastian Masanek
2025-10-30 14:28:54 +01:00
parent a0121016b9
commit e2e36ad7ae
4 changed files with 627 additions and 1 deletions

View File

@@ -2,7 +2,9 @@
export default defineNuxtConfig({
compatibilityDate: '2025-01-29',
devtools: { enabled: true },
devtools: {
enabled: ['true', '1'].includes(process.env.NUXT_DEVTOOLS_ENABLED || ''),
},
// App configuration
app: {
@@ -36,6 +38,8 @@ export default defineNuxtConfig({
databaseUrl: process.env.DATABASE_URL,
redisHost: process.env.REDIS_HOST || 'localhost',
redisPort: process.env.REDIS_PORT || '6379',
internalAuthUsername: process.env.INTERNAL_AUTH_USERNAME || '',
internalAuthPassword: process.env.INTERNAL_AUTH_PASSWORD || '',
// Public (exposed to client)
public: {