-
Notifications
You must be signed in to change notification settings - Fork 450
RI-000: add possibility to run multiple UI #5416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -86,7 +86,7 @@ export default defineConfig({ | |
| }, | ||
| }, | ||
| server: { | ||
| port: 8080, | ||
| port: parseInt(process.env.RI_UI_DEV_PORT, 10) || 8080, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should use helper function IMO, some less experienced users may try to start the app with ports less than 1000 and get errors
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also, isn't there an option to make it so that vite choses next port if current is occupied?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think we should to automate this, imo it should be under developer control. Moreover since it is developer command - I don't think we need to even validate it.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is automatic out of the box - https://vite.dev/config/server-options#server-port
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. shouldn't
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we don't have some env.example file atm. we can add it if needed for needed envs. |
||
| fs: { | ||
| allow: ['..', '../../node_modules/monaco-editor', 'static', 'defaults'], | ||
| }, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.