Skip to content

Commit

Permalink
debug app properties
Browse files Browse the repository at this point in the history
  • Loading branch information
sondrele committed Mar 22, 2022
1 parent 76a8fce commit cb6d69e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/mulighetsrommet-veileder-flate/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@ import { OpenAPI } from 'mulighetsrommet-api';
import Navspa from '@navikt/navspa';
import { worker } from './mock/worker';

console.log('mvf', import.meta.env);

OpenAPI.BASE = String(import.meta.env.VITE_BACKEND_API_ROOT ?? '');

if (import.meta.env.VITE_ENABLE_MOCK === 'true') {
worker.start();
ReactDOM.render(<App />, document.getElementById('mulighetsrommet-root'));
} else {
console.log('mvf', 'export');
Navspa.eksporter('mulighetsrommet-veileder-flate', App);
}
1 change: 1 addition & 0 deletions frontend/mulighetsrommet-veileder-flate/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import reactRefresh from '@vitejs/plugin-react-refresh';
export default defineConfig({
plugins: [reactRefresh()],
build: {
minify: false,
manifest: 'asset-manifest.json',
},
});

0 comments on commit cb6d69e

Please sign in to comment.