diff --git a/.gitignore b/.gitignore index 51bf003..e7fb1a4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /out .next node_modules -.DS_Store \ No newline at end of file +.DS_Store +yarn.lock \ No newline at end of file diff --git a/README.md b/README.md index 07f29f4..bc969b6 100644 --- a/README.md +++ b/README.md @@ -9,4 +9,4 @@ ETHPrize single page React website `npm run deploy` to deploy to `https://nona-creative.github.io/ETHPrize` -`yarn lint` runs the eslinter +`npm lint` runs the eslinter diff --git a/next.config.js b/next.config.js index ef52ee3..dd0dd53 100644 --- a/next.config.js +++ b/next.config.js @@ -1,7 +1,10 @@ -const withSass = require('@zeit/next-sass') +const withSass = require('@zeit/next-sass'); + +const dev = process && process.env && process.env.NODE_ENV === 'development'; + module.exports = withSass({ - assetPrefix: isProduction ? '/ETHPrize' : '', + assetPrefix: dev ? '' : '/ETHPrize', exportPathMap: function(defaultPathMap) { return { '/': { page: '/' }