From b16ad07819d323337d60071897622f65f8c40f96 Mon Sep 17 00:00:00 2001 From: Peder Orheim Hatlen Date: Fri, 2 Oct 2026 20:57:43 +0200 Subject: [PATCH 1/3] chore: add link to VM Added link to VM in the readme --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 35abbdf..0a335aa 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # T26-Project-2 +http://it2810-26.idi.ntnu.no/project2/ + Repository for team IT2810-H26-T26 in IT2810-H26. ## Setup/install From d441f45ceb61ac793faa462ab9581450f398699d Mon Sep 17 00:00:00 2001 From: Peder Orheim Hatlen Date: Fri, 2 Oct 2026 21:02:15 +0200 Subject: [PATCH 2/3] fix: img src pos Fix image pointing towards wrong folder when not ran from the root of a webserver (eg. the VM). --- project2/src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project2/src/App.tsx b/project2/src/App.tsx index daf9d5d..b264960 100644 --- a/project2/src/App.tsx +++ b/project2/src/App.tsx @@ -173,7 +173,7 @@ function App() { {mockeMons.map((pokemon) => (
  • - {pokemon.name} + {pokemon.name}

    {pokemon.name}

    #{String(pokemon.id).padStart(4, '0')} From acd3d981ca43674933aee8898887482b98fd9ad8 Mon Sep 17 00:00:00 2001 From: Peder Orheim Hatlen Date: Fri, 2 Oct 2026 21:05:17 +0200 Subject: [PATCH 3/3] add: Config for running on VM Add the folder config for "/project2/" for running on the VM folder. --- project2/vite.config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/project2/vite.config.ts b/project2/vite.config.ts index ddee8c4..9bfa1bd 100644 --- a/project2/vite.config.ts +++ b/project2/vite.config.ts @@ -4,4 +4,5 @@ import { defineConfig } from 'vite'; // https://vite.dev/config/ export default defineConfig({ plugins: [react()], + base: '/project2/', });