Skip to content

Commit

Permalink
Merge pull request #510 from Aar-if/fifty
Browse files Browse the repository at this point in the history
Issue #000 feat:  Build optimisation
  • Loading branch information
itsvick authored Dec 6, 2024
2 parents d5b9839 + d262632 commit 70f26a6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 6 additions & 2 deletions next-i18next.config.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
module.exports = {
compiler: {
removeConsole: process.env.NODE_ENV === 'production',
},
compress: true,
i18n: {
defaultLocale: 'en',
locales: ['en', 'mr', 'hi', 'or', 'ur', 'ml'],
localeDetection: false,
},

fallbackLng: 'en',
// localePath:
// typeof window === "undefined"
// ? require("path").resolve("./public/locales/")
// : "/locales",
ns: ['common'],
reloadOnPrerender: process.env.NODE_ENV === 'development',
reloadOnPrerender: process.env.NODE_ENV === 'development',
};

3 changes: 3 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ const nextConfig = {
// Disabling on production builds because we're running checks on PRs via GitHub Actions.
ignoreDuringBuilds: true,
},
compiler: {
removeConsole: process.env.NODE_ENV === 'production',
},
trailingSlash: false,
reactStrictMode: true,
i18n: nextI18nextConfig.i18n,
Expand Down

0 comments on commit 70f26a6

Please sign in to comment.