Commit a903503d authored by Craig Mulligan's avatar Craig Mulligan Committed by Arunoda Susiripala

Update readme.md (#1818)

parent b52b91a8
......@@ -710,7 +710,7 @@ Here's an example `.babelrc` file:
To set up a CDN, you can set up the `assetPrefix` setting and configure your CDN's origin to resolve to the domain that Next.js is hosted on.
```js
const isProd = process.NODE_ENV === 'production'
const isProd = process.env.NODE_ENV === 'production'
module.exports = {
// You may only need to add assetPrefix in the production.
assetPrefix: isProd ? 'https://cdn.mydomain.com' : ''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment