Skip to content

Commit

Permalink
ci(): support prod env
Browse files Browse the repository at this point in the history
  • Loading branch information
limitofzero committed Jan 20, 2024
1 parent 5ac38bb commit 61e1cf4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
/** @type {import('next').NextConfig} */

const isProd = process.env.NODE_ENV === 'production'

const nextConfig = {
output: 'export',
basePath: '/limit-order-parser',
basePath: isProd ? '/limit-order-parser' : undefined,
}

module.exports = nextConfig
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"license": "MIT",
"scripts": {
"dev": "next dev",
"build": "next build",
"build": "ENV=production next build",
"postbuild": "cp .nojekyll ./out/",
"start": "next start",
"lint": "next lint",
Expand Down

0 comments on commit 61e1cf4

Please sign in to comment.