|
|
@@ -2,6 +2,15 @@ import fs from 'fs';
|
|
|
import vuetify from 'vite-plugin-vuetify'
|
|
|
import {NuxtI18nOptions} from "@nuxtjs/i18n"
|
|
|
|
|
|
+let https = {}
|
|
|
+
|
|
|
+if (process.env.NUXT_ENV === 'dev') {
|
|
|
+ https = {
|
|
|
+ key: fs.readFileSync('local.app-v3.opentalent.fr.key'),
|
|
|
+ cert: fs.readFileSync('local.app-v3.opentalent.fr.crt'),
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
/**
|
|
|
* Nuxt configuration
|
|
|
*
|
|
|
@@ -107,10 +116,7 @@ export default defineNuxtConfig({
|
|
|
noExternal: ['vuetify']
|
|
|
},
|
|
|
server : {
|
|
|
- https: {
|
|
|
- key: fs.readFileSync('local.app-v3.opentalent.fr.key'),
|
|
|
- cert: fs.readFileSync('local.app-v3.opentalent.fr.crt'),
|
|
|
- },
|
|
|
+ https,
|
|
|
//@ts-ignore
|
|
|
port: 443,
|
|
|
hmr: {
|