Files
profilarr/vite.config.ts
Sam Chau d2133aa457 feat(auth): implement authentication system
- Username/password login with bcrypt and session cookies
- API key authentication (X-Api-Key header or ?apikey query param)
- AUTH env var modes: on, local, off, oidc
- Generic OIDC support for external providers
- Session metadata tracking (IP, browser, device)
- Security settings page (password, sessions, API key)
- Login analysis with typo and attack detection
- Auth event logging throughout
2026-01-26 00:22:05 +10:30

23 lines
586 B
TypeScript

import tailwindcss from '@tailwindcss/vite';
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
import { readFileSync } from 'node:fs';
import deno from '@deno/vite-plugin';
const packageJson = JSON.parse(readFileSync('./package.json', 'utf-8'));
export default defineConfig({
plugins: [deno(), tailwindcss(), sveltekit()],
server: {
port: 6969,
host: true,
watch: {
// Ignore temporary files created by editors
ignored: ['**/*.tmp.*', '**/*~', '**/.#*']
}
},
define: {
__APP_VERSION__: JSON.stringify(packageJson.version)
}
});