💚 Backend henter frontend fra dist

Co-authored-by: Øydis Kind Refsum <oydis.kind.refsum@nav.no>
Co-authored-by: Christian Bulow Skovborg <christian.bulow.skovborg@nav.no>
Co-authored-by: Amalie Mansåker <amalie.erdal.mansaker@nav.no>
Co-authored-by: Sindre Kjelsrud <sindre.kjelsrud@nav.no>
This commit is contained in:
Markus Johansen 2023-07-19 15:10:14 +02:00
parent 177d6c7cd8
commit 1805256e3c
10 changed files with 1283 additions and 33 deletions

View file

@ -32,7 +32,7 @@ fun configureRouting(): ApplicationEngine = embeddedServer(CIO, applicationEngin
routing {
singlePageApplication{
useResources = true
filesPath = "frontend/out"
filesPath = "frontend/dist"
defaultPage = "index.html"
ignoreFiles {
it.endsWith(".txt")

View file

@ -11,7 +11,18 @@
},
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react-dom": "^18.2.0",
"react-router-dom": "^6.14.0",
"axios": "^1.4.0",
"@navikt/aksel-icons": "^4.4.2",
"@navikt/ds-css": "^4.4.2",
"@navikt/ds-react": "^4.4.2",
"@navikt/ds-tailwind": "^4.6.1",
"@navikt/ds-tokens": "^4.6.1",
"tailwindcss": "3.3.2",
"swr": "^2.2.0",
"autoprefixer": "10.4.14",
"postcss": "8.4.6"
},
"devDependencies": {
"@types/react": "^18.2.14",
@ -23,6 +34,8 @@
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.1",
"typescript": "^5.0.2",
"vite": "^4.4.0"
"vite": "^4.4.0",
"@navikt/aksel-stylelint": "^4.5.0",
"stylelint": "^15.10.1"
}
}

View file

@ -1,4 +1,4 @@
import FeilCard from "./FeilCard";
import FeilCard from "./FeilCard"
type FeilMelding = {
tittel: String

File diff suppressed because it is too large Load diff

View file

@ -9,28 +9,17 @@
"lint": "yarn lint"
},
"dependencies": {
"@navikt/aksel-icons": "^4.4.2",
"@navikt/ds-css": "^4.4.2",
"@navikt/ds-react": "^4.4.2",
"@navikt/ds-tailwind": "^4.6.1",
"@navikt/ds-tokens": "^4.6.1",
"@types/node": "20.3.2",
"@types/react": "18.2.14",
"@types/react-dom": "18.2.6",
"autoprefixer": "10.4.14",
"axios": "^1.4.0",
"eslint": "8.43.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-router-dom": "^6.14.0",
"swr": "^2.2.0",
"tailwindcss": "3.3.2",
"typescript": "5.1.5"
},
"devDependencies": {
"@navikt/aksel-stylelint": "^4.5.0",
"stylelint": "^15.10.1",
"vite": "^4.4.4",
"@vitejs/plugin-react": "^2.1.0"
}