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({
|
VitePWA({
|
||||||
registerType: "autoUpdate",
|
registerType: "autoUpdate",
|
||||||
|
devOptions: {
|
||||||
|
enabled: mode === "staging",
|
||||||
|
},
|
||||||
}),
|
}),
|
||||||
version(),
|
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: {
|
define: {
|
||||||
"import.meta.env.BUILT_AT": `"${new Date().toISOString()}"`,
|
"import.meta.env.BUILT_AT": `"${new Date().toISOString()}"`,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue