Skip to content

Commit

Permalink
fix(release wrong path)
Browse files Browse the repository at this point in the history
  • Loading branch information
vollate committed Jun 4, 2024
1 parent eb4c0d8 commit af2760b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src-ui/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'export',
distDir: 'tmp/' + process.env.R,
output: 'export',
distDir: process.env.NODE_ENV === 'release' ? 'out' : 'tmp/' + process.env.R,
}

export default nextConfig
2 changes: 1 addition & 1 deletion src-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"scripts": {
"dev": "python -c \"import os;import shutil; import random;shutil.rmtree('tmp/'); os.environ['R'] = str(random.randint(0, 32767)); os.system('next dev')\"",
"build": "next build",
"build": "python -c \"import os; os.environ['NODE_ENV'] = 'release'; os.system('next build')\"",
"start": "next start",
"lint": "next lint",
"format": "prettier --write '{app,components,constants}/**/*.{js,jsx,json}'",
Expand Down

0 comments on commit af2760b

Please sign in to comment.