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));
|
||||
|
||||
export default defineConfig({
|
||||
server: {
|
||||
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({
|
|||
),
|
||||
},
|
||||
},
|
||||
});
|
||||
}));
|
||||
|
|
|
|||
Loading…
Reference in a new issue