Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
a903503d
Commit
a903503d
authored
Apr 27, 2017
by
Craig Mulligan
Committed by
Arunoda Susiripala
Apr 27, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update readme.md (#1818)
parent
b52b91a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
readme.md
readme.md
+1
-1
No files found.
readme.md
View file @
a903503d
...
@@ -710,7 +710,7 @@ Here's an example `.babelrc` file:
...
@@ -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.
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
```
js
const
isProd
=
process
.
NODE_ENV
===
'production'
const
isProd
=
process
.
env
.
NODE_ENV
===
'production'
module
.
exports
=
{
module
.
exports
=
{
// You may only need to add assetPrefix in the production.
// You may only need to add assetPrefix in the production.
assetPrefix
:
isProd
?
'https://cdn.mydomain.com'
:
''
assetPrefix
:
isProd
?
'https://cdn.mydomain.com'
:
''
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment