mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-28 23:43:22 +00:00
fix: ajout des urls prod et demo
# Message de commit (conventionnel) : # Construction automatique depuis une branche aux formats: # - <type>-<ticket-id>-ma_super_description # - <type>-ma_super_description # <type>(<scope>): <description> [#<ticket-id>] # 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])
This commit is contained in:
@ -1 +1 @@
|
|||||||
__version__ = "0.0.1"
|
__version__ = "0.0.2"
|
||||||
|
|||||||
@ -5,9 +5,6 @@ const pkg = require('./package.json');
|
|||||||
|
|
||||||
const withNextIntl = createNextIntlPlugin();
|
const withNextIntl = createNextIntlPlugin();
|
||||||
|
|
||||||
const apiUrl = process.env.NEXT_PUBLIC_API_URL || 'http://localhost:8080';
|
|
||||||
const apiUrlObj = new URL(apiUrl);
|
|
||||||
|
|
||||||
/** @type {import('next').NextConfig} */
|
/** @type {import('next').NextConfig} */
|
||||||
const nextConfig = {
|
const nextConfig = {
|
||||||
output: 'standalone',
|
output: 'standalone',
|
||||||
@ -22,9 +19,17 @@ const nextConfig = {
|
|||||||
hostname: 'www.gravatar.com',
|
hostname: 'www.gravatar.com',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
protocol: apiUrlObj.protocol.replace(':', ''),
|
protocol: 'https',
|
||||||
hostname: apiUrlObj.hostname,
|
hostname: 'api.demo.n3wtschool.com',
|
||||||
...(apiUrlObj.port ? { port: apiUrlObj.port } : {}),
|
},
|
||||||
|
{
|
||||||
|
protocol: 'https',
|
||||||
|
hostname: 'api.prod.n3wtschool.com',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
protocol: 'http',
|
||||||
|
hostname: 'localhost',
|
||||||
|
port: '8080',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "n3wt-school-front-end",
|
"name": "n3wt-school-front-end",
|
||||||
"version": "0.0.1",
|
"version": "0.0.2",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
|
|||||||
Reference in New Issue
Block a user