Skip to content

Commit

Permalink
Merge pull request #1745 from navikt/fix_local_dev
Browse files Browse the repository at this point in the history
local dev starter ikke uten at man har kjørt build
  • Loading branch information
kenglxn authored Oct 25, 2023
2 parents f3abf50 + 69cd8f0 commit 66114b2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ const loggerPlugin = (proxyServer, options) => {
log.info(`Frackend startup: ${JSON.stringify({ NAIS_CLUSTER_NAME, MILJO, GIT_COMMIT })}`);

let BUILD_PATH = path.join(process.cwd(), '../build');
if (MILJO === 'local') {
BUILD_PATH = path.join(process.cwd(), '../');
}

const indexHtml = Mustache.render(readFileSync(path.join(BUILD_PATH, 'index.html')).toString(), {
SETTINGS: `
Expand Down

0 comments on commit 66114b2

Please sign in to comment.