mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
fix reading incorrect package.json (#323)
This commit is contained in:
parent
6ca52f3ee2
commit
f049a0bfa0
|
@ -2,7 +2,10 @@ import React from 'react'
|
|||
import htmlescape from 'htmlescape'
|
||||
import readPkgUp from 'read-pkg-up'
|
||||
|
||||
const pkg = readPkgUp.sync({normalize: false}).pkg
|
||||
const { pkg } = readPkgUp.sync({
|
||||
cwd: __dirname,
|
||||
normalize: false
|
||||
})
|
||||
|
||||
export default ({ head, css, html, data, dev, staticMarkup, cdn }) => {
|
||||
return <html>
|
||||
|
|
Loading…
Reference in a new issue