Skip to content

Commit

Permalink
chore: use different build dirs for next dev/prod
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelmord committed Mar 30, 2020
1 parent 7f557dd commit e8bd352
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/poolbase-app/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,5 @@ node_modules/
# create-react-app and documented in the Ruby dotenv:
# https://github.com/bkeepers/dotenv#what-other-env-files-can-i-use
.env.*local

.next
2 changes: 1 addition & 1 deletion packages/poolbase-app/src/app/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require('./env.js');

module.exports = {
distDir: '../../../../dist/app/functions/next',
distDir: process.env.NODE_ENV === 'development' ? '.next' : '../../../../dist/app/functions/next',
// Public, build-time env vars.
// https://nextjs.org/docs#build-time-configuration
env: {
Expand Down

0 comments on commit e8bd352

Please sign in to comment.