Skip to content

Commit

Permalink
clarify why production env is needed
Browse files Browse the repository at this point in the history
  • Loading branch information
cherniavskii committed Jul 17, 2024
1 parent 26ebab1 commit 08a43fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/data/introduction/licensing/licensing.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,10 @@ To solve the issue, you can [renew your license](https://mui.com/r/x-get-license
:::warning
Make sure to set `process.env.NODE_ENV` to `'production'` in your build process to avoid the watermark in production.
Most bundlers set this environment variable automatically when building for production, but for custom setups, you might need to set it manually.

Note that `NODE_ENV=production` is not MUI-specific and is a common practice in the JavaScript ecosystem.
It allows bundlers and libraries to optimize the output for production and eliminate dead code, so it's worth checking if it's set correctly in your project.
See related documentation for [Webpack](https://webpack.js.org/guides/production/#specify-the-mode), [Node.js](https://nodejs.org/en/learn/getting-started/nodejs-the-difference-between-development-and-production) and [Next.js](https://nextjs.org/docs/messages/non-standard-node-env) for more information.
:::

### 4. License key plan mismatch
Expand Down

0 comments on commit 08a43fc

Please sign in to comment.