From 1141366cecbf9d804ff67a581af2f16f1c3f1e75 Mon Sep 17 00:00:00 2001 From: 37b7 Date: Fri, 16 May 2025 08:05:56 +0200 Subject: [PATCH] try fix - env not detected correctly ... --- config/navigation.ts | 7 ++++++- docker/Dockerfile | 4 +++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/config/navigation.ts b/config/navigation.ts index e8f3c4d..9d5bc69 100644 --- a/config/navigation.ts +++ b/config/navigation.ts @@ -1,4 +1,5 @@ export interface NavigationItem { + finder: string; path: string; name: string; icon?: string; @@ -6,21 +7,25 @@ export interface NavigationItem { export const navigationItems: NavigationItem[] = [ { - path: '/', + finder: 'home', + path: process.env.NODE_ENV === 'production' ? '/' : '/containers/matheothierry-portfolio_nuxt/', name: 'Home', icon: 'home' }, { + finder: 'projects', path: process.env.NODE_ENV === 'production' ? '/projects' : '/containers/matheothierry-portfolio_nuxt/projects', name: 'Projets', icon: 'projects' }, { + finder: 'about', path: process.env.NODE_ENV === 'production' ? '/about' : '/containers/matheothierry-portfolio_nuxt/about', name: 'À Propos', icon: 'about' }, { + finder: 'cv', path: process.env.NODE_ENV === 'production' ? '/cv' : '/containers/matheothierry-portfolio_nuxt/cv', name: 'CV', icon: 'cv' diff --git a/docker/Dockerfile b/docker/Dockerfile index 08655a6..f074216 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -2,6 +2,9 @@ FROM node:18-alpine as builder WORKDIR /app COPY package*.json ./ RUN npm install +ENV NODE_ENV=production +ENV HOST=0.0.0.0 +ENV PORT=3000 COPY . . RUN npm run build @@ -14,5 +17,4 @@ EXPOSE 3000 ENV NODE_ENV=production ENV HOST=0.0.0.0 ENV PORT=3000 -ENV NUXT_PUBLIC_BASE_URL=/containers/matheothierry-portfolio_nuxt/ CMD ["node", ".output/server/index.mjs"]