Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/gui/src/electron/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,7 @@ if (ensureSingleInstance() && ensureCorrectEnvironment()) {

const startUrl =
process.env.NODE_ENV === 'development'
? 'http://localhost:3000'
? `http://localhost:${Number(process.env.CHIA_GUI_PORT) || 3000}`
: url.format({
pathname: path.join(__dirname, '/../renderer/index.html'),
protocol: 'file:',
Expand Down
2 changes: 1 addition & 1 deletion packages/gui/webpack.react.babel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import TerserPlugin from 'terser-webpack-plugin';
import HtmlWebpackPlugin from 'html-webpack-plugin';
import LodashModuleReplacementPlugin from 'lodash-webpack-plugin';

const PORT = 3000;
const PORT = Number(process.env.CHIA_GUI_PORT) || 3000;
Comment thread
cursor[bot] marked this conversation as resolved.
const CONTEXT = __dirname;
const DEV = process.env.NODE_ENV !== 'production';

Expand Down
Loading