diff --git a/README.md b/README.md index d7adcfc..35ad406 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,8 @@ Créer un vrai /security.txt (ou /.well-known/security.txt) au lieu de le renvoy location = /security.txt { return 404; } # METTRE EN LIGNE LE DEV AVEC GITEA +Serveur GITEA https://git.parisweb.art/ + ## Du dev vers Gitea git add . git commit -m "Mon message de commit" @@ -39,7 +41,7 @@ git push origin main cd /var/www/wondif_vue git pull origin main # récupère le dernier code -npm ci # installe / met à jour les deps (propre) +npm ci # installe / met à jour les dépendances npm run build # rebuild Nuxt pm2 restart wondif_vue # redémarre le process diff --git a/nuxt.config.js b/nuxt.config.js index a5ac8df..7e3bddf 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -46,13 +46,15 @@ export default defineNuxtConfig({ runtimeConfig: { // Server-side only (jamais exposé au client) - strapiToken: process.env.STRAPI_API_TOKEN || '', + // ceci strapiToken: process.env.STRAPI_API_TOKEN || '', est remplacé par la ligne ci-dessous car la récup des variable .env est automatique si on les nomme correctement + strapiToken: '', //instagramAppId: process.env.NUXT_INSTAGRAM_APP_ID, //instagramClientToken: process.env.NUXT_INSTAGRAM_CLIENT_TOKEN, // 🌍 Public (accessible dans le navigateur) + // lit implicitement la variables .env process.env.NUXT_PUBLIC_STRAPI_URL public: { - strapiUrl: process.env.NUXT_PUBLIC_STRAPI_URL || 'http://localhost:1337', + strapiUrl: 'http://localhost:1337', }, },