Skip to content

Commit

Permalink
🚧 Add basic BASE_URL and PORT env utilisation ajnart#76
Browse files Browse the repository at this point in the history
  • Loading branch information
ajnart committed May 19, 2022
1 parent b531e17 commit 20a3828
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const { env } = require('process');

const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
});
Expand All @@ -10,4 +12,5 @@ module.exports = withBundleAnalyzer({
experimental: {
outputStandalone: true,
},
basePath: env.BASE_URL,
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dev": "next dev",
"build": "next build",
"analyze": "ANALYZE=true next build",
"start": "next start --port 7575",
"start": "next start",
"typecheck": "tsc --noEmit",
"export": "next build && next export",
"lint": "next lint",
Expand Down

0 comments on commit 20a3828

Please sign in to comment.