Skip to content

Commit

Permalink
oppdater siste versjon
Browse files Browse the repository at this point in the history
  • Loading branch information
johannbm committed Sep 6, 2024
1 parent 8b711ce commit 36402e4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
14 changes: 7 additions & 7 deletions apps/frackend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/frackend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"license": "MIT",
"dependencies": {
"@navikt/oasis": "3.2.4",
"@navikt/vite-mode": "0.9.3",
"@navikt/vite-mode": "0.11.2",
"axios": "1.6.8",
"express": "4.19.2",
"helmet": "7.1.0",
Expand Down
8 changes: 3 additions & 5 deletions apps/frackend/src/frontendRoute.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import path from "node:path";

import {
addLocalViteServerHandler,
addServeSpaHandler,
} from "@navikt/vite-mode";
import { addServeSpaHandler, serveViteMode } from "@navikt/vite-mode";
import express, { Express } from "express";

export function setupStaticRoutes(app: Express) {
Expand All @@ -12,6 +9,7 @@ export function setupStaticRoutes(app: Express) {
// When deployed, the built frontend is copied into the public directory. If running BFF locally the directory will not exist.
const spaFilePath = path.resolve("./public", "index.html");

addLocalViteServerHandler(app, {});
serveViteMode(app, {});

addServeSpaHandler(app, spaFilePath);
}

0 comments on commit 36402e4

Please sign in to comment.