Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions frontend/package-lock.json

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

1 change: 1 addition & 0 deletions frontend/src/assets/environments/env.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
*/
export default {
production: true,
configs: [],
};
11 changes: 9 additions & 2 deletions frontend/src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
import { MinaEnv } from '@shared/types/core/environment/mina-env.type';
import env from '../assets/environments/env';

export const environment: Readonly<MinaEnv> = env as MinaEnv;
const env = (window as any).env;
export const environment: Readonly<MinaEnv> = {
production: true,
configs: env.configs,
globalConfig: env.globalConfig,
hideNodeStats: env.hideNodeStats,
identifier: env.identifier,
hideToolbar: env.hideToolbar,
};
7 changes: 7 additions & 0 deletions frontend/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&display=block" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Raleway:wght@300;500;600&display=block" rel="stylesheet">
<meta name="viewport" content="width=device-width, minimal-ui">
<script type="module">
import env from './assets/environments/env.js';

(function (window) {
window["env"] = window.env || env;
})(window);
</script>
</head>

<body class="f-base">
Expand Down
Loading