Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
5 changes: 4 additions & 1 deletion packages/gui/webpack.react.babel.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import webpack from 'webpack';
import path from 'path';
import dotenv from 'dotenv';
import ReactRefreshWebpackPlugin from '@pmmmwh/react-refresh-webpack-plugin';
import LoadablePlugin from '@loadable/webpack-plugin';
import TerserPlugin from 'terser-webpack-plugin';
import HtmlWebpackPlugin from 'html-webpack-plugin';
import LodashModuleReplacementPlugin from 'lodash-webpack-plugin';

const PORT = 3000;
dotenv.config({ path: path.join(__dirname, '.env') });

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