diff --git a/vite.config.ts b/vite.config.ts index 26d01b6..7ebb905 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -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()}"`, },