repos
/ status-rust master

status-rust

mirror archived upstream

Single-binary self-hosted uptime monitoring and status pages on Rust axum: HTTP probes, Lighthouse audits, SEO crawler, and PDF reports.

axumdockerrustself-hostedsqlitestatus-pageuptime-monitoringvite

819 B · 28 lines · JavaScript Raw History
 1import { resolve } from "path";
 2import { defineConfig } from "vite";
 3
 4// Project structure mirrors analytics/blog/darkfurrow:
 5// - All entry points live under static_src/{base,pages,properties}
 6// - Vite outputs to ../dist/ with content-hashed filenames
 7// - The Rust binary reads dist/.vite/manifest.json to resolve hashed names
 8export default defineConfig({
 9  base: "/static/",
10  build: {
11    outDir: resolve(__dirname, "../dist"),
12    emptyOutDir: true,
13    manifest: true,
14    rollupOptions: {
15      input: {
16        base: resolve(__dirname, "static_src/base/index.js"),
17        pages: resolve(__dirname, "static_src/pages/index.js"),
18        properties: resolve(__dirname, "static_src/properties/index.js"),
19      },
20    },
21  },
22  css: {
23    preprocessorOptions: {
24      scss: { quietDeps: true },
25    },
26  },
27});