From b780e8b4ff4b5e6bbbccf1c77a56136c0c4affcb Mon Sep 17 00:00:00 2001 From: N3WT DE COMPET Date: Sun, 1 Jun 2025 13:21:14 +0200 Subject: [PATCH] fix: ajout des urls prod et demo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # Message de commit (conventionnel) : # Construction automatique depuis une branche aux formats: # - --ma_super_description # - -ma_super_description # (): [#] # ex : feat(frontend): ajout de la gestion des utilisateurs dans le dashboard [#1] # # Types: # - feat: Nouvelle fonctionnalité # - fix: Correction de bug # - docs: Documentation # - style: Changements esthétiques # - refactor: Refactorisation # - test: Ajout/modification de tests # - chore: Tâches diverses (e.g., mise à jour des dépendances) # # Scope: Optionnel (ex. backend, frontend, api, ci ) # # Ticket ID: Référence à un ticket ou une issue (ex. [#123]) --- Back-End/__version__.py | 2 +- Front-End/next.config.mjs | 17 +++++++++++------ Front-End/package.json | 2 +- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/Back-End/__version__.py b/Back-End/__version__.py index f102a9c..3b93d0b 100644 --- a/Back-End/__version__.py +++ b/Back-End/__version__.py @@ -1 +1 @@ -__version__ = "0.0.1" +__version__ = "0.0.2" diff --git a/Front-End/next.config.mjs b/Front-End/next.config.mjs index cc678bb..01cf87a 100644 --- a/Front-End/next.config.mjs +++ b/Front-End/next.config.mjs @@ -5,9 +5,6 @@ const pkg = require('./package.json'); const withNextIntl = createNextIntlPlugin(); -const apiUrl = process.env.NEXT_PUBLIC_API_URL || 'http://localhost:8080'; -const apiUrlObj = new URL(apiUrl); - /** @type {import('next').NextConfig} */ const nextConfig = { output: 'standalone', @@ -22,9 +19,17 @@ const nextConfig = { hostname: 'www.gravatar.com', }, { - protocol: apiUrlObj.protocol.replace(':', ''), - hostname: apiUrlObj.hostname, - ...(apiUrlObj.port ? { port: apiUrlObj.port } : {}), + protocol: 'https', + hostname: 'api.demo.n3wtschool.com', + }, + { + protocol: 'https', + hostname: 'api.prod.n3wtschool.com', + }, + { + protocol: 'http', + hostname: 'localhost', + port: '8080', }, ], }, diff --git a/Front-End/package.json b/Front-End/package.json index 537c959..a98022e 100644 --- a/Front-End/package.json +++ b/Front-End/package.json @@ -1,6 +1,6 @@ { "name": "n3wt-school-front-end", - "version": "0.0.1", + "version": "0.0.2", "private": true, "scripts": { "dev": "next dev",