generated from methanium/template
(fix): nix flake
This commit is contained in:
parent
025c8c8e16
commit
8ad73cfefb
1 changed files with 11 additions and 8 deletions
|
|
@ -10,13 +10,16 @@ import { defineConfig, type Plugin } from "vite";
|
||||||
|
|
||||||
const root = path.dirname(fileURLToPath(import.meta.url));
|
const root = path.dirname(fileURLToPath(import.meta.url));
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig(({ command }) => ({
|
||||||
server: {
|
server:
|
||||||
https: {
|
command === "serve"
|
||||||
cert: fs.readFileSync(path.resolve(root, "../../.dev/cert.pem")),
|
? {
|
||||||
key: fs.readFileSync(path.resolve(root, "../../.dev/key.pem")),
|
https: {
|
||||||
},
|
cert: fs.readFileSync(path.resolve(root, "../../.dev/cert.pem")),
|
||||||
},
|
key: fs.readFileSync(path.resolve(root, "../../.dev/key.pem")),
|
||||||
|
},
|
||||||
|
}
|
||||||
|
: undefined,
|
||||||
plugins: [
|
plugins: [
|
||||||
tanstackRouter({ target: "react", autoCodeSplitting: true }),
|
tanstackRouter({ target: "react", autoCodeSplitting: true }),
|
||||||
tailwindcss(),
|
tailwindcss(),
|
||||||
|
|
@ -32,4 +35,4 @@ export default defineConfig({
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
}));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue