We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17e93b3 commit 49d4c09Copy full SHA for 49d4c09
nuxt.config.ts
@@ -1,8 +1,24 @@
1
+let https = {}
2
+if (/yes|1|on|true/i.test(`${process.env.SESAME_HTTPS_ENABLED}`)) {
3
+ try {
4
+ https = {
5
+ key: readFileSync(`${process.env.SESAME_HTTPS_PATH_KEY}`, 'utf8'),
6
+ cert: readFileSync(`${process.env.SESAME_HTTPS_PATH_CERT}`, 'utf8'),
7
+ };
8
+ consola.info('[Nuxt] SSL certificates loaded successfully')
9
+ } catch (error) {
10
+ consola.warn('[Nuxt] Error while reading SSL certificates', error)
11
+ }
12
+}
13
+
14
// https://nuxt.com/docs/api/configuration/nuxt-config
15
export default defineNuxtConfig({
16
compatibilityDate: '2024-04-03',
17
devtools: { enabled: true },
18
modules: ["nuxt-quasar-ui","@nuxt-alt/proxy"],
19
+ devServer: {
20
+ https,
21
+ },
22
srcDir: "src",
23
proxy: {
24
https: false,
0 commit comments