configure local debugging options
This commit is contained in:
parent
6ad794eae5
commit
067a363550
1 changed files with 11 additions and 0 deletions
|
@ -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()}"`,
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue