Compare commits

..

View file

@ -10,16 +10,13 @@ import { defineConfig, type Plugin } from "vite";
const root = path.dirname(fileURLToPath(import.meta.url));
export default defineConfig(({ command }) => ({
server:
command === "serve"
? {
export default defineConfig({
server: {
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(),
@ -35,4 +32,4 @@ export default defineConfig(({ command }) => ({
),
},
},
}));
});