try fix - env not detected correctly ...
continuous-integration/drone/push Build is passing Details

master
37b7 3 weeks ago
parent c505e648fb
commit 1141366cec

@ -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'

@ -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"]

Loading…
Cancel
Save