Skip to content

Commit

Permalink
Fjern støtte for søknadstype i URL i webpack-dev-config
Browse files Browse the repository at this point in the history
  • Loading branch information
kristeine committed Mar 22, 2024
1 parent 2028bbb commit 4759bfc
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/webpack/webpack.development.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,13 @@ const devConfig: webpack.Configuration = mergeWithRules({
client: {
overlay: true,
},
open: [basePath + 'ordinaer'],
open: [basePath],
proxy: {
[`${basePath}modellversjon`]: `http://localhost:55554`,
[`${basePath}api`]: `http://localhost:55554`,
[`${basePath}dokument`]: `http://localhost:55554`,
[`${basePath}toggles`]: `http://localhost:55554`,
[`${basePath}konverter`]: `http://localhost:55554`,
// Hvis vi kjører uten en basepath som inneholder ordinaer vil denne og neste regel loope
...(basePath.includes('ordinaer') && {
[basePath.replace('ordinaer', 'utvidet')]: {
target: 'http://localhost:3000',
pathRewrite: path => path.replace('utvidet', 'ordinaer'),
},
}),
// Essentially en workaround for https://github.com/nrwl/nx/issues/3859
'*': {
target: 'http://localhost:3000',
Expand Down

0 comments on commit 4759bfc

Please sign in to comment.