Skip to content

Commit

Permalink
feat: add developmentMode to publicRuntimeConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
solidovic committed Feb 28, 2024
1 parent f28ab55 commit 0744c24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ declare module 'next/config' {
};
publicRuntimeConfig: {
basePath: string;
developmentMode: boolean;
};
};

Expand Down
1 change: 1 addition & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -186,5 +186,6 @@ export default withBundleAnalyzer({
publicRuntimeConfig: {
// ATTENTION: If you will add a new variable you should to declare it in `global.d.ts`
basePath,
developmentMode,
},
});

0 comments on commit 0744c24

Please sign in to comment.