(fix): nix flake

This commit is contained in:
Alois 2026-07-29 22:55:11 +02:00
commit 8ad73cfefb
Signed by: alois
SSH key fingerprint: SHA256:GBzT2DXvAuGV9XIV5W3WrzVpjU54FThmxHXdbz95J24

View file

@ -10,13 +10,16 @@ import { defineConfig, type Plugin } from "vite";
const root = path.dirname(fileURLToPath(import.meta.url));
export default defineConfig({
server: {
https: {
cert: fs.readFileSync(path.resolve(root, "../../.dev/cert.pem")),
key: fs.readFileSync(path.resolve(root, "../../.dev/key.pem")),
},
},
export default defineConfig(({ command }) => ({
server:
command === "serve"
? {
https: {
cert: fs.readFileSync(path.resolve(root, "../../.dev/cert.pem")),
key: fs.readFileSync(path.resolve(root, "../../.dev/key.pem")),
},
}
: undefined,
plugins: [
tanstackRouter({ target: "react", autoCodeSplitting: true }),
tailwindcss(),
@ -32,4 +35,4 @@ export default defineConfig({
),
},
},
});
}));