Skip to content

Commit 09b3a32

Browse files
committed
Remove cdn config item.
We no longer using it.
1 parent 08f7f10 commit 09b3a32

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

examples/shared-modules/package.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,5 @@
1212
"next": "*"
1313
},
1414
"author": "",
15-
"license": "ISC",
16-
"next": {
17-
"cdn": true
18-
}
15+
"license": "ISC"
1916
}

server/config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { readFile } from 'mz/fs'
33

44
const cache = new Map()
55

6-
const defaultConfig = { cdn: true }
6+
const defaultConfig = {}
77

88
export default function getConfig (dir) {
99
if (!cache.has(dir)) {

server/render.js

-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { createElement } from 'react'
33
import { renderToString, renderToStaticMarkup } from 'react-dom/server'
44
import requireModule from './require'
55
import read from './read'
6-
import getConfig from './config'
76
import Router from '../lib/router'
87
import Head, { defaultHead } from '../lib/head'
98
import App from '../lib/app'
@@ -67,8 +66,6 @@ async function doRender (req, res, pathname, query, {
6766
return { html, head }
6867
}
6968

70-
const config = await getConfig(dir)
71-
7269
const docProps = await Document.getInitialProps({ ...ctx, renderPage })
7370

7471
const doc = createElement(Document, {
@@ -82,7 +79,6 @@ async function doRender (req, res, pathname, query, {
8279
},
8380
dev,
8481
staticMarkup,
85-
cdn: config.cdn,
8682
...docProps
8783
})
8884

0 commit comments

Comments
 (0)