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

feat: added port and network expose and removed react-scripts #1234

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

developerTested
Copy link

This PR will add feature which will allow user to pick custom port, hostname, add featured to remove ../.../.../ like import.

closes #1230

👷🏻 Changes made

  1. package.json
  2. vite.config.js
  3. frongend.md
  4. .env.example

@github-actions github-actions bot added status: todo ⏳ This issue is yet to be seen by the maintainer of the project. 💡 feature This generally contains addition/changes to features. labels Mar 3, 2024
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @developerTested, thank you for raising a pull request.

Currently, the pull request is marked as https://github.com/MilanCommunity/Milan/labels/status%3A%20todo%20%E2%8F%B3 so please wait until the maintainers/owner review it and provide you with feedback/suggestions to proceed further.

Feel free to reach out to Tamal on Twitter, or drop a mail at [email protected] if you think that this pull request is of critical priority.

Give us a ⭐ to show some support
Happy OpenSource 🚀

@tamalCodes
Copy link
Member

That's amazing features - since we now have introduced aliases - should we use it in at least files so that we know it works and can be done like this in the future ?

HOST_NAME=localhost

# Expose Vite to Network
EXPOSE_NETWORK=false
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, why is this false ? Suppose I want to expose it in development mode and test it on other devices. Isn't this feature needed then ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that .env var is self explain. If user want to expose it on Network set it true .
It is set as false because let says if u don't want to expose it on network so user have control over it instead by default exposing it HARD CODED that is aim of that variable so in future user won't have to rr-edit vite.config.js and set it false.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will set it as True and push changes in few minutes

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, I'd say then let's keep it false - please update all the concerned docs so that newbies have no problem setting up and navigating through the same. Also please test every command before the final push, will merge it tomorrow.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I already set it as true. Okay. I will set it as false now.

please point the docs where it need to mention so i will add it there

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tamalCodes tamalCodes added status: need changes 🚧 Changes have been requested for these PRs and removed status: todo ⏳ This issue is yet to be seen by the maintainer of the project. labels Mar 11, 2024
Copy link

This pull request has been deployed to Vercel.

Latest commit: cfab35f
✅ Preview: https://milan-ekh3ed9bt-iamtamal.vercel.app
🔍 Inspect: https://vercel.com/iamtamal/milan/FijnZykVifAzoCPnywYWXStMAWfx

View Workflow Logs

@developerTested
Copy link
Author

New changes have been applied

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💡 feature This generally contains addition/changes to features. status: need changes 🚧 Changes have been requested for these PRs
Projects
Status: In Progress (PRs)
Development

Successfully merging this pull request may close these issues.

Feature: Use .env file for Port, Network Expose and remove React Scripts
3 participants