From 56c173b98cf4446435d6c4e41babc9e0a396f1d5 Mon Sep 17 00:00:00 2001 From: rem Date: Sun, 30 Jun 2024 01:43:39 +0200 Subject: [PATCH] pp --- Dockerfile | 2 +- angular.json | 1 + src/app/app.config.ts | 7 ++++++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index f909f2e..2ed28fc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,4 +10,4 @@ RUN npm install EXPOSE 8080 -CMD ["ng", "serve", "--host", "0.0.0.0", "--port", "8080", "--base-href", "https://codefirst.iut.uca.fr/containers/remiarnal-portfolioo/"] +CMD ["ng", "serve", "--host", "0.0.0.0", "--port", "8080"] diff --git a/angular.json b/angular.json index 47d129d..2c5cc0b 100644 --- a/angular.json +++ b/angular.json @@ -13,6 +13,7 @@ "build": { "builder": "@angular-devkit/build-angular:application", "options": { + "baseHref" : "/containers/remiarnal-portfolioo", "outputPath": "dist/portfolioo", "index": "src/index.html", "browser": "src/main.ts", diff --git a/src/app/app.config.ts b/src/app/app.config.ts index 8a65e19..385c2db 100644 --- a/src/app/app.config.ts +++ b/src/app/app.config.ts @@ -1,9 +1,14 @@ import { ApplicationConfig } from '@angular/core'; import { provideRouter, withComponentInputBinding } from '@angular/router'; +import {APP_BASE_HREF} from '@angular/common'; import { routes } from './app.routes'; import { provideHttpClient } from '@angular/common/http'; export const appConfig: ApplicationConfig = { - providers: [provideRouter(routes, withComponentInputBinding()), provideHttpClient()] + providers: [ + provideRouter(routes, withComponentInputBinding()), + provideHttpClient(), + { provide: APP_BASE_HREF, useValue: '/containers/remiarnal-portfolioo/' } + ] };