Explorar o código

rename env variable

Olivier Massot hai 1 ano
pai
achega
1337f4bedf
Modificáronse 16 ficheiros con 30 adicións e 17 borrados
  1. 1 1
      app.vue
  2. 1 1
      components/Layout/Footer/Footer.vue
  3. 2 1
      env/.env.ci
  4. 2 1
      env/.env.docker
  5. 2 1
      env/.env.prod
  6. 2 1
      env/.env.test
  7. 2 1
      env/.env.test1
  8. 2 1
      env/.env.test2
  9. 2 1
      env/.env.test3
  10. 2 1
      env/.env.test4
  11. 2 1
      env/.env.test5
  12. 2 1
      env/.env.test6
  13. 2 1
      env/.env.test7
  14. 2 1
      env/.env.test8
  15. 2 1
      env/.env.test9
  16. 2 2
      nuxt.config.ts

+ 1 - 1
app.vue

@@ -31,7 +31,7 @@ useHead(() => ({
   link: [
   link: [
     {
     {
       rel: 'canonical',
       rel: 'canonical',
-      href: UrlUtils.join(runtimeConfig.public.baseUrl as string, route.path),
+      href: UrlUtils.join(runtimeConfig.public.siteUrl as string, route.path),
     },
     },
   ],
   ],
 }))
 }))

+ 1 - 1
components/Layout/Footer/Footer.vue

@@ -208,7 +208,7 @@
               Politiques de confidentialité
               Politiques de confidentialité
             </nuxt-link>
             </nuxt-link>
             -
             -
-            <nuxt-link to="/CGV"> Conditions Générales de Ventes </nuxt-link>
+            <nuxt-link to="/cgv"> Conditions Générales de Ventes </nuxt-link>
           </p>
           </p>
         </v-row>
         </v-row>
 
 

+ 2 - 1
env/.env.ci

@@ -3,10 +3,11 @@ NUXT_ENV=dev
 NUXT_DEBUG=1
 NUXT_DEBUG=1
 DEBUG=1
 DEBUG=1
 
 
-NUXT_BASE_URL=none
+NUXT_SITE_URL=none
 NUXT_API_BASE_URL=none
 NUXT_API_BASE_URL=none
 NUXT_PUBLIC_API_BASE_URL=none
 NUXT_PUBLIC_API_BASE_URL=none
 
 
+NUXT_SITE_URL=none
 NUXT_AGENDA_BASE_URL=none
 NUXT_AGENDA_BASE_URL=none
 NUXT_PUBLIC_AGENDA_BASE_URL=none
 NUXT_PUBLIC_AGENDA_BASE_URL=none
 
 

+ 2 - 1
env/.env.docker

@@ -3,10 +3,11 @@ NUXT_ENV=dev
 NUXT_DEBUG=1
 NUXT_DEBUG=1
 DEBUG=1
 DEBUG=1
 
 
-NUXT_BASE_URL=http://local.logiciels.opentalent.fr
+NUXT_SITE_URL=http://local.logiciels.opentalent.fr
 NUXT_API_BASE_URL=https://nginx_maestro
 NUXT_API_BASE_URL=https://nginx_maestro
 NUXT_PUBLIC_API_BASE_URL=https://local.maestro.opentalent.fr
 NUXT_PUBLIC_API_BASE_URL=https://local.maestro.opentalent.fr
 
 
+NUXT_SITE_URL=http://local.logiciels.opentalent.fr
 NUXT_AGENDA_BASE_URL=https://local.agenda.opentalent.fr
 NUXT_AGENDA_BASE_URL=https://local.agenda.opentalent.fr
 NUXT_PUBLIC_AGENDA_BASE_URL=https://local.agenda.opentalent.fr
 NUXT_PUBLIC_AGENDA_BASE_URL=https://local.agenda.opentalent.fr
 
 

+ 2 - 1
env/.env.prod

@@ -3,9 +3,10 @@
 NUXT_ENV=production
 NUXT_ENV=production
 NUXT_DEBUG=0
 NUXT_DEBUG=0
 
 
-NUXT_BASE_URL=http://logiciels.opentalent.fr
+NUXT_SITE_URL=http://logiciels.opentalent.fr
 NUXT_API_BASE_URL=https://maestro.opentalent.fr
 NUXT_API_BASE_URL=https://maestro.opentalent.fr
 NUXT_PUBLIC_API_BASE_URL=https://maestro.opentalent.fr
 NUXT_PUBLIC_API_BASE_URL=https://maestro.opentalent.fr
 
 
+NUXT_SITE_URL=http://logiciels.opentalent.fr
 NUXT_AGENDA_BASE_URL=https://new.opentalent.fr
 NUXT_AGENDA_BASE_URL=https://new.opentalent.fr
 NUXT_PUBLIC_AGENDA_BASE_URL=https://new.opentalent.fr
 NUXT_PUBLIC_AGENDA_BASE_URL=https://new.opentalent.fr

+ 2 - 1
env/.env.test

@@ -2,9 +2,10 @@ NUXT_ENV=test
 NUXT_DEBUG=1
 NUXT_DEBUG=1
 DEBUG=1
 DEBUG=1
 
 
-NUXT_BASE_URL=http://logiciels.test.opentalent.fr
+NUXT_SITE_URL=http://logiciels.test.opentalent.fr
 NUXT_API_BASE_URL=https://maestro.test.opentalent.fr
 NUXT_API_BASE_URL=https://maestro.test.opentalent.fr
 NUXT_PUBLIC_API_BASE_URL=https://maestro.test.opentalent.fr
 NUXT_PUBLIC_API_BASE_URL=https://maestro.test.opentalent.fr
 
 
+NUXT_PUBLIC_SITE_URL=http://logiciels.test.opentalent.fr
 NUXT_AGENDA_BASE_URL=https://agenda.test.opentalent.fr
 NUXT_AGENDA_BASE_URL=https://agenda.test.opentalent.fr
 NUXT_PUBLIC_AGENDA_BASE_URL=https://agenda.test.opentalent.fr
 NUXT_PUBLIC_AGENDA_BASE_URL=https://agenda.test.opentalent.fr

+ 2 - 1
env/.env.test1

@@ -2,9 +2,10 @@ NUXT_ENV=test
 NUXT_DEBUG=1
 NUXT_DEBUG=1
 DEBUG=1
 DEBUG=1
 
 
-NUXT_BASE_URL=http://logiciels.test1.opentalent.fr
+NUXT_SITE_URL=http://logiciels.test1.opentalent.fr
 NUXT_API_BASE_URL=https://maestro.test1.opentalent.fr
 NUXT_API_BASE_URL=https://maestro.test1.opentalent.fr
 NUXT_PUBLIC_API_BASE_URL=https://maestro.test1.opentalent.fr
 NUXT_PUBLIC_API_BASE_URL=https://maestro.test1.opentalent.fr
 
 
+NUXT_PUBLIC_SITE_URL=http://logiciels.test1.opentalent.fr
 NUXT_AGENDA_BASE_URL=https://agenda.test1.opentalent.fr
 NUXT_AGENDA_BASE_URL=https://agenda.test1.opentalent.fr
 NUXT_PUBLIC_AGENDA_BASE_URL=https://agenda.test1.opentalent.fr
 NUXT_PUBLIC_AGENDA_BASE_URL=https://agenda.test1.opentalent.fr

+ 2 - 1
env/.env.test2

@@ -2,9 +2,10 @@ NUXT_ENV=test
 NUXT_DEBUG=1
 NUXT_DEBUG=1
 DEBUG=1
 DEBUG=1
 
 
-NUXT_BASE_URL=http://logiciels.test2.opentalent.fr
+NUXT_SITE_URL=http://logiciels.test2.opentalent.fr
 NUXT_API_BASE_URL=https://maestro.test2.opentalent.fr
 NUXT_API_BASE_URL=https://maestro.test2.opentalent.fr
 NUXT_PUBLIC_API_BASE_URL=https://maestro.test2.opentalent.fr
 NUXT_PUBLIC_API_BASE_URL=https://maestro.test2.opentalent.fr
 
 
+NUXT_PUBLIC_SITE_URL=http://logiciels.test2.opentalent.fr
 NUXT_AGENDA_BASE_URL=https://agenda.test2.opentalent.fr
 NUXT_AGENDA_BASE_URL=https://agenda.test2.opentalent.fr
 NUXT_PUBLIC_AGENDA_BASE_URL=https://agenda.test2.opentalent.fr
 NUXT_PUBLIC_AGENDA_BASE_URL=https://agenda.test2.opentalent.fr

+ 2 - 1
env/.env.test3

@@ -2,9 +2,10 @@ NUXT_ENV=test
 NUXT_DEBUG=1
 NUXT_DEBUG=1
 DEBUG=1
 DEBUG=1
 
 
-NUXT_BASE_URL=http://logiciels.test3.opentalent.fr
+NUXT_SITE_URL=http://logiciels.test3.opentalent.fr
 NUXT_API_BASE_URL=https://maestro.test3.opentalent.fr
 NUXT_API_BASE_URL=https://maestro.test3.opentalent.fr
 NUXT_PUBLIC_API_BASE_URL=https://maestro.test3.opentalent.fr
 NUXT_PUBLIC_API_BASE_URL=https://maestro.test3.opentalent.fr
 
 
+NUXT_PUBLIC_SITE_URL=http://logiciels.test2.opentalent.fr
 NUXT_AGENDA_BASE_URL=https://agenda.test3.opentalent.fr
 NUXT_AGENDA_BASE_URL=https://agenda.test3.opentalent.fr
 NUXT_PUBLIC_AGENDA_BASE_URL=https://agenda.test3.opentalent.fr
 NUXT_PUBLIC_AGENDA_BASE_URL=https://agenda.test3.opentalent.fr

+ 2 - 1
env/.env.test4

@@ -2,9 +2,10 @@ NUXT_ENV=test
 NUXT_DEBUG=1
 NUXT_DEBUG=1
 DEBUG=1
 DEBUG=1
 
 
-NUXT_BASE_URL=http://logiciels.test4.opentalent.fr
+NUXT_SITE_URL=http://logiciels.test4.opentalent.fr
 NUXT_API_BASE_URL=https://maestro.test4.opentalent.fr
 NUXT_API_BASE_URL=https://maestro.test4.opentalent.fr
 NUXT_PUBLIC_API_BASE_URL=https://maestro.test4.opentalent.fr
 NUXT_PUBLIC_API_BASE_URL=https://maestro.test4.opentalent.fr
 
 
+NUXT_PUBLIC_SITE_URL=http://logiciels.test4.opentalent.fr
 NUXT_AGENDA_BASE_URL=https://agenda.test4.opentalent.fr
 NUXT_AGENDA_BASE_URL=https://agenda.test4.opentalent.fr
 NUXT_PUBLIC_AGENDA_BASE_URL=https://agenda.test4.opentalent.fr
 NUXT_PUBLIC_AGENDA_BASE_URL=https://agenda.test4.opentalent.fr

+ 2 - 1
env/.env.test5

@@ -2,9 +2,10 @@ NUXT_ENV=test
 NUXT_DEBUG=1
 NUXT_DEBUG=1
 DEBUG=1
 DEBUG=1
 
 
-NUXT_BASE_URL=http://logiciels.test5.opentalent.fr
+NUXT_SITE_URL=http://logiciels.test5.opentalent.fr
 NUXT_API_BASE_URL=https://maestro.test5.opentalent.fr
 NUXT_API_BASE_URL=https://maestro.test5.opentalent.fr
 NUXT_PUBLIC_API_BASE_URL=https://maestro.test5.opentalent.fr
 NUXT_PUBLIC_API_BASE_URL=https://maestro.test5.opentalent.fr
 
 
+NUXT_PUBLIC_SITE_URL=http://logiciels.test5.opentalent.fr
 NUXT_AGENDA_BASE_URL=https://agenda.test5.opentalent.fr
 NUXT_AGENDA_BASE_URL=https://agenda.test5.opentalent.fr
 NUXT_PUBLIC_AGENDA_BASE_URL=https://agenda.test5.opentalent.fr
 NUXT_PUBLIC_AGENDA_BASE_URL=https://agenda.test5.opentalent.fr

+ 2 - 1
env/.env.test6

@@ -2,9 +2,10 @@ NUXT_ENV=test
 NUXT_DEBUG=1
 NUXT_DEBUG=1
 DEBUG=1
 DEBUG=1
 
 
-NUXT_BASE_URL=http://logiciels.test6.opentalent.fr
+NUXT_SITE_URL=http://logiciels.test6.opentalent.fr
 NUXT_API_BASE_URL=https://maestro.test6.opentalent.fr
 NUXT_API_BASE_URL=https://maestro.test6.opentalent.fr
 NUXT_PUBLIC_API_BASE_URL=https://maestro.test6.opentalent.fr
 NUXT_PUBLIC_API_BASE_URL=https://maestro.test6.opentalent.fr
 
 
+NUXT_PUBLIC_SITE_URL=http://logiciels.test6.opentalent.fr
 NUXT_AGENDA_BASE_URL=https://agenda.test6.opentalent.fr
 NUXT_AGENDA_BASE_URL=https://agenda.test6.opentalent.fr
 NUXT_PUBLIC_AGENDA_BASE_URL=https://agenda.test6.opentalent.fr
 NUXT_PUBLIC_AGENDA_BASE_URL=https://agenda.test6.opentalent.fr

+ 2 - 1
env/.env.test7

@@ -2,9 +2,10 @@ NUXT_ENV=test
 NUXT_DEBUG=1
 NUXT_DEBUG=1
 DEBUG=1
 DEBUG=1
 
 
-NUXT_BASE_URL=http://logiciels.test7.opentalent.fr
+NUXT_SITE_URL=http://logiciels.test7.opentalent.fr
 NUXT_API_BASE_URL=https://maestro.test7.opentalent.fr
 NUXT_API_BASE_URL=https://maestro.test7.opentalent.fr
 NUXT_PUBLIC_API_BASE_URL=https://maestro.test7.opentalent.fr
 NUXT_PUBLIC_API_BASE_URL=https://maestro.test7.opentalent.fr
 
 
+NUXT_PUBLIC_SITE_URL=http://logiciels.test7.opentalent.fr
 NUXT_AGENDA_BASE_URL=https://agenda.test7.opentalent.fr
 NUXT_AGENDA_BASE_URL=https://agenda.test7.opentalent.fr
 NUXT_PUBLIC_AGENDA_BASE_URL=https://agenda.test7.opentalent.fr
 NUXT_PUBLIC_AGENDA_BASE_URL=https://agenda.test7.opentalent.fr

+ 2 - 1
env/.env.test8

@@ -2,9 +2,10 @@ NUXT_ENV=test
 NUXT_DEBUG=1
 NUXT_DEBUG=1
 DEBUG=1
 DEBUG=1
 
 
-NUXT_BASE_URL=http://logiciels.test8.opentalent.fr
+NUXT_SITE_URL=http://logiciels.test8.opentalent.fr
 NUXT_API_BASE_URL=https://maestro.test8.opentalent.fr
 NUXT_API_BASE_URL=https://maestro.test8.opentalent.fr
 NUXT_PUBLIC_API_BASE_URL=https://maestro.test8.opentalent.fr
 NUXT_PUBLIC_API_BASE_URL=https://maestro.test8.opentalent.fr
 
 
+NUXT_PUBLIC_SITE_URL=http://logiciels.test8.opentalent.fr
 NUXT_AGENDA_BASE_URL=https://agenda.test8.opentalent.fr
 NUXT_AGENDA_BASE_URL=https://agenda.test8.opentalent.fr
 NUXT_PUBLIC_AGENDA_BASE_URL=https://agenda.test8.opentalent.fr
 NUXT_PUBLIC_AGENDA_BASE_URL=https://agenda.test8.opentalent.fr

+ 2 - 1
env/.env.test9

@@ -2,9 +2,10 @@ NUXT_ENV=test
 NUXT_DEBUG=1
 NUXT_DEBUG=1
 DEBUG=1
 DEBUG=1
 
 
-NUXT_BASE_URL=http://logiciels.test9.opentalent.fr
+NUXT_SITE_URL=http://logiciels.test9.opentalent.fr
 NUXT_API_BASE_URL=https://maestro.test9.opentalent.fr
 NUXT_API_BASE_URL=https://maestro.test9.opentalent.fr
 NUXT_PUBLIC_API_BASE_URL=https://maestro.test9.opentalent.fr
 NUXT_PUBLIC_API_BASE_URL=https://maestro.test9.opentalent.fr
 
 
+NUXT_PUBLIC_SITE_URL=http://logiciels.test9.opentalent.fr
 NUXT_AGENDA_BASE_URL=https://agenda.test9.opentalent.fr
 NUXT_AGENDA_BASE_URL=https://agenda.test9.opentalent.fr
 NUXT_PUBLIC_AGENDA_BASE_URL=https://agenda.test9.opentalent.fr
 NUXT_PUBLIC_AGENDA_BASE_URL=https://agenda.test9.opentalent.fr

+ 2 - 2
nuxt.config.ts

@@ -30,14 +30,14 @@ export default defineNuxtConfig({
   runtimeConfig: {
   runtimeConfig: {
     // Private config that is only available on the server
     // Private config that is only available on the server
     env: '',
     env: '',
-    baseUrl: '',
+    siteUrl: '',
     apiBaseUrl: '',
     apiBaseUrl: '',
     agendaBaseUrl: '',
     agendaBaseUrl: '',
     hCaptchaSiteKey: '35360874-ebb1-4748-86e3-9b156d5bfc53',
     hCaptchaSiteKey: '35360874-ebb1-4748-86e3-9b156d5bfc53',
     // Config within public will be also exposed to the client
     // Config within public will be also exposed to the client
     public: {
     public: {
       env: '',
       env: '',
-      baseUrl: '',
+      siteUrl: '',
       apiBaseUrl: '',
       apiBaseUrl: '',
       agendaBaseUrl: '',
       agendaBaseUrl: '',
       hCaptchaSiteKey: '35360874-ebb1-4748-86e3-9b156d5bfc53',
       hCaptchaSiteKey: '35360874-ebb1-4748-86e3-9b156d5bfc53',