add live statistics
All checks were successful
deploy / build-and-deploy (push) Successful in 22s

This commit is contained in:
2025-11-11 01:53:56 +01:00
parent dfc1425c6b
commit 5ce2db9040
26 changed files with 1168 additions and 817 deletions

View File

@@ -1,7 +1,6 @@
// @ts-check
import { defineConfig, envField } from 'astro/config';
import icon from 'astro-icon';
import tailwindcss from '@tailwindcss/vite';
import svelte, { vitePreprocess } from '@astrojs/svelte';
@@ -26,7 +25,7 @@ export default defineConfig({
plugins: [tailwindcss()]
},
integrations: [icon(), svelte({ preprocess: vitePreprocess() })],
integrations: [svelte({ preprocess: vitePreprocess() })],
env: {
schema: {
@@ -43,6 +42,9 @@ export default defineConfig({
WEBHOOK_ENDPOINT: envField.string({ context: 'server', access: 'secret', optional: true }),
STATISTICS_ENDPOINT: envField.string({ context: 'server', access: 'secret', optional: true }),
STATISTICS_INTERVAL: envField.number({ context: 'server', access: 'secret', default: 60 * 30 }),
TEAMSPEAK_LINK: envField.string({ context: 'server', access: 'secret', default: 'http://example.com' }),
DISCORD_LINK: envField.string({ context: 'server', access: 'secret', default: 'http://example.com' }),
PAYPAL_LINK: envField.string({ context: 'server', access: 'secret', default: 'http://example.com' }),