public uptime monitoring + (soon) observability with events saved to PDS
1import { defineConfig } from 'vite';
2import { svelte } from '@sveltejs/vite-plugin-svelte';
3import { readFileSync } from 'fs';
4import { resolve } from 'path';
5
6// read config at build time
7const config = JSON.parse(
8 readFileSync(resolve(__dirname, 'config.json'), 'utf-8')
9);
10
11export default defineConfig({
12 plugins: [svelte()],
13 define: {
14 __CONFIG__: JSON.stringify(config),
15 },
16});