Compare commits

..

View file

@ -10,16 +10,13 @@ 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(({ command }) => ({ export default defineConfig({
server: server: {
command === "serve"
? {
https: { https: {
cert: fs.readFileSync(path.resolve(root, "../../.dev/cert.pem")), cert: fs.readFileSync(path.resolve(root, "../../.dev/cert.pem")),
key: fs.readFileSync(path.resolve(root, "../../.dev/key.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(),
@ -35,4 +32,4 @@ export default defineConfig(({ command }) => ({
), ),
}, },
}, },
})); });