-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Add PORT env var to be used #952
Conversation
🦋 Changeset detectedLatest commit: cf5122e The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
This pull request is being automatically deployed with Vercel (learn more). astro-www – ./www🔍 Inspect: https://vercel.com/pikapkg/astro-www/63bpCAXnwdV9A4KtPt7PGkpNPEiq astro-docs – ./docs🔍 Inspect: https://vercel.com/pikapkg/astro-docs/AjNBZpmWRbJSUSdeBjjtGMkmPsTd |
983e6e0
to
fc739c2
Compare
Thanks so much for the contribution @stramel! I'm on board with this approach. Would you mind rebasing and marking this as ready for review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, though i don't 100% get the types of everything 😅
would https://mael.dev/typanion/ be helpful or is it better to not pull in a whole dep for one task 😅?
I could definitely rewrite it with typanion if you would like. I will leave it up to you all |
* Add PORT env var to be used * Format * Create few-carpets-sing.md * Update few-carpets-sing.md
This reverts commit 939b9d0.
This reverts commit 939b9d0.
@FredKSchott did this break something? Saw it got reverted, just wondering if I need to fix something with this and re-issue a PR? |
Ah sorry, I got pulled away right after reverting. Check this thread out: https://discord.com/channels/830184174198718474/845430950191038464/875149362928443402 I also missed that PR though, and have some thoughts :) I might recommend doing this more flexibly via config, since that then sets any user up to do I know this isn't ideal way to leave this feedback (and I should have gotten it to you sooner) Happy to chat in literally any other venue (discord thread or RFC) if you'd like to keep discussing. |
* Add PORT env var to be used * Format * Create few-carpets-sing.md * Update few-carpets-sing.md
This reverts commit 939b9d0.
Resolves #872
Changes
PORT
environment variable to be used (PORT=4200 yarn dev
)Testing
Manually tested this by running the build and starting the cli directly from the
astro.cjs
fileDocs
I haven't updated this yet because I'm unsure where this information should live.
NOTE: I was attempting to set this up so we could easily support additional environment variables in the future without much effort. I could probably instead add just a simple change instead of the current PR like so:
So just let me know if I over-complicated it and I'll swap it out