Make build work

main
Mike Fix 7 years ago
parent df98812783
commit 338e1553f9

@ -0,0 +1,8 @@
module.exports = {
// TODO remove `next.configs.js` when this closes: https://github.com/zeit/next.js/issues/1195
webpack (cfg) {
cfg.plugins = cfg.plugins
.filter(plugin => (plugin.constructor.name !== 'UglifyJsPlugin'))
return cfg
},
}

@ -29,7 +29,7 @@
"react-spinkit": "^3.0.0", "react-spinkit": "^3.0.0",
"react-spinner": "^0.2.7", "react-spinner": "^0.2.7",
"react-syntax-highlight": "^0.0.6", "react-syntax-highlight": "^0.0.6",
"tohash": "^1.0.0", "tohash": "^1.0.2",
"twitter": "^1.7.1" "twitter": "^1.7.1"
}, },
"now": { "now": {

@ -4,7 +4,7 @@ const bodyParser = require('body-parser')
const next = require('next') const next = require('next')
const port = parseInt(process.env.PORT, 10) || 3000 const port = parseInt(process.env.PORT, 10) || 3000
const dev = process.env.NODE_ENV !== 'production' const dev = process.env.NODE_ENV !== 'production' && !process.env.NOW
const app = next({ dev }) const app = next({ dev })
const handle = app.getRequestHandler() const handle = app.getRequestHandler()

@ -3526,9 +3526,9 @@ to-fast-properties@^1.0.1:
version "1.0.3" version "1.0.3"
resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.3.tgz#b83571fa4d8c25b82e231b06e3a3055de4ca1a47" resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.3.tgz#b83571fa4d8c25b82e231b06e3a3055de4ca1a47"
tohash@^1.0.0: tohash@^1.0.2:
version "1.0.0" version "1.0.2"
resolved "https://registry.yarnpkg.com/tohash/-/tohash-1.0.0.tgz#cd740231ca16821e3744f2f18ff9727382eeb091" resolved "https://registry.yarnpkg.com/tohash/-/tohash-1.0.2.tgz#9e66e497da0cfd77ba85f9663065adf2d8c99981"
touch@3.1.0: touch@3.1.0:
version "3.1.0" version "3.1.0"

Loading…
Cancel
Save