configure local debugging options

This commit is contained in:
thislight 2024-07-23 14:16:35 +08:00
parent 6ad794eae5
commit 067a363550

View file

@ -17,9 +17,20 @@ export default defineConfig(({ mode }) => ({
}),
VitePWA({
registerType: "autoUpdate",
devOptions: {
enabled: mode === "staging",
},
}),
version(),
],
server: {
https: {
// localhost.direct: https://github.com/Upinel/localhost.direct
key: "tools/certs/localhost.direct.key",
cert: "tools/certs/localhost.direct.crt",
passphrase: "localhost",
},
},
define: {
"import.meta.env.BUILT_AT": `"${new Date().toISOString()}"`,
},