We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d79025 commit 2b004c6Copy full SHA for 2b004c6
nuxt.config.ts
@@ -17,10 +17,10 @@ if (process.env.SESAME_APP_DARK_MODE) {
17
}
18
19
20
-let https = {}
+let sslCfg = <any>{}
21
if (/yes|1|on|true/i.test(`${process.env.SESAME_HTTPS_ENABLED}`)) {
22
try {
23
- https = {
+ sslCfg.https = {
24
key: readFileSync(`${process.env.SESAME_HTTPS_PATH_KEY}`, 'utf8'),
25
cert: readFileSync(`${process.env.SESAME_HTTPS_PATH_CERT}`, 'utf8'),
26
};
@@ -39,7 +39,7 @@ export default defineNuxtConfig({
39
debug: !!process.env.DEBUG,
40
devServer: {
41
port: 3000,
42
- https,
+ ...sslCfg,
43
},
44
devtools: {
45
enabled: process.env.NODE_ENV === 'development',
0 commit comments