mirror of
https://github.com/usestrix/strix.git
synced 2026-08-22 11:02:08 +02:00
`strix view` opens a run in the browser, served locally from the run files (nothing is uploaded). There's also a quick link to it from the TUI and the end-of-run summary.
22 lines
656 B
TypeScript
22 lines
656 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
import { fileURLToPath, URL } from "node:url";
|
|
|
|
// The viewer is served as static files by a stdlib Python server on an
|
|
// arbitrary ephemeral port, so all asset URLs must be relative (base: "./").
|
|
// The build output is committed at strix/viewer/viewer_dist and shipped.
|
|
export default defineConfig({
|
|
base: "./",
|
|
plugins: [react(), tailwindcss()],
|
|
resolve: {
|
|
alias: {
|
|
"@": fileURLToPath(new URL("./src", import.meta.url)),
|
|
},
|
|
},
|
|
build: {
|
|
outDir: "../viewer/viewer_dist",
|
|
emptyOutDir: true,
|
|
},
|
|
});
|