Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
Add Environment plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
solocommand committed Nov 8, 2018
1 parent 2a07c81 commit 15c807d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/web/next.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
const { EnvironmentPlugin } = require('webpack');

module.exports = {
distDir: '../.next/build',

webpack: (config, { dev }) => {
config.plugins.push(new EnvironmentPlugin(['NODE_ENV', 'GRAPH_PROXY']));

if (dev) {
config.module.rules.push({
test: /\.jsx?$/,
Expand Down

0 comments on commit 15c807d

Please sign in to comment.