💚 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:
parent
177d6c7cd8
commit
1805256e3c
10 changed files with 1283 additions and 33 deletions
|
@ -32,7 +32,7 @@ fun configureRouting(): ApplicationEngine = embeddedServer(CIO, applicationEngin
|
||||||
routing {
|
routing {
|
||||||
singlePageApplication{
|
singlePageApplication{
|
||||||
useResources = true
|
useResources = true
|
||||||
filesPath = "frontend/out"
|
filesPath = "frontend/dist"
|
||||||
defaultPage = "index.html"
|
defaultPage = "index.html"
|
||||||
ignoreFiles {
|
ignoreFiles {
|
||||||
it.endsWith(".txt")
|
it.endsWith(".txt")
|
||||||
|
|
|
@ -11,7 +11,18 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"react": "^18.2.0",
|
"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": {
|
"devDependencies": {
|
||||||
"@types/react": "^18.2.14",
|
"@types/react": "^18.2.14",
|
||||||
|
@ -23,6 +34,8 @@
|
||||||
"eslint-plugin-react-hooks": "^4.6.0",
|
"eslint-plugin-react-hooks": "^4.6.0",
|
||||||
"eslint-plugin-react-refresh": "^0.4.1",
|
"eslint-plugin-react-refresh": "^0.4.1",
|
||||||
"typescript": "^5.0.2",
|
"typescript": "^5.0.2",
|
||||||
"vite": "^4.4.0"
|
"vite": "^4.4.0",
|
||||||
|
"@navikt/aksel-stylelint": "^4.5.0",
|
||||||
|
"stylelint": "^15.10.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import FeilCard from "./FeilCard";
|
import FeilCard from "./FeilCard"
|
||||||
|
|
||||||
type FeilMelding = {
|
type FeilMelding = {
|
||||||
tittel: String
|
tittel: String
|
1284
frontend/yarn.lock
1284
frontend/yarn.lock
File diff suppressed because it is too large
Load diff
|
@ -9,28 +9,17 @@
|
||||||
"lint": "yarn lint"
|
"lint": "yarn lint"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"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/node": "20.3.2",
|
||||||
"@types/react": "18.2.14",
|
"@types/react": "18.2.14",
|
||||||
"@types/react-dom": "18.2.6",
|
"@types/react-dom": "18.2.6",
|
||||||
"autoprefixer": "10.4.14",
|
|
||||||
"axios": "^1.4.0",
|
|
||||||
"eslint": "8.43.0",
|
"eslint": "8.43.0",
|
||||||
"react": "18.2.0",
|
"react": "18.2.0",
|
||||||
"react-dom": "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"
|
"typescript": "5.1.5"
|
||||||
},
|
},
|
||||||
|
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@navikt/aksel-stylelint": "^4.5.0",
|
"@navikt/aksel-stylelint": "^4.5.0",
|
||||||
"stylelint": "^15.10.1",
|
|
||||||
"vite": "^4.4.4",
|
"vite": "^4.4.4",
|
||||||
"@vitejs/plugin-react": "^2.1.0"
|
"@vitejs/plugin-react": "^2.1.0"
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue