Skip to content
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

fix(cli): get ip addr & port number from config #3369

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

wiseaidev
Copy link
Contributor

@wiseaidev wiseaidev commented Dec 16, 2024

I have been experimenting with Dioxus SSG recently and noticed that the port number and IP address are hardcoded. The port is set to 9999 instead of retrieving the values from the configuration.

With these changes, the port is now set to the env var value at compile time (defaults to 8080):

PORT=3000 dx serve --ssg 

@jkelleyrtp
Copy link
Member

Good catch - I didn't think it would be important to pass the port/address through but in hindsight some features do care about these values (like side apis and cli_config)

@jkelleyrtp jkelleyrtp merged commit 4d484df into DioxusLabs:main Jan 7, 2025
15 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants