1
0
Fork 0
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:
Naoyuki Kanezawa 2016-12-02 15:56:02 +09:00 committed by GitHub
parent 6ca52f3ee2
commit f049a0bfa0

View file

@ -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>