-
Notifications
You must be signed in to change notification settings - Fork 405
align dev port #2045
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?
align dev port #2045
Conversation
🦋 Changeset detectedLatest commit: 0bd2484 The changes in this PR will be included in the next version bump. 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 |
✅ Deploy Preview for solid-start-landing-page ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
commit: |
cf9a571 to
0bd2484
Compare
|
@huseeiin Thank you 🥳 |
atilafassina
left a comment
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.
While I can understand wanting SolidStart to have a consistent port number by default, this is overriding user settings.
export defaultConfig({
server: {
port: 8888
},
plugins: [ solidStart() ]
})will serve the app on 3000 instead of 8888
amazing observation. how do we fix this? |
Maybe the solidStart plugin could add a different separate plugin (analog to our router, manifest, etc. plugins) for the port, that:
// mutate the config directly (use only when merging doesn't work)
const mutateConfigPlugin = () => ({
name: 'mutate-config',
config(config) {
if (!config.hasSomeValue) {
config.hasSomeValue = "Hello World";
}
},
}) |
|
since its not ready yet, will convert to draft, just in case someone merges is it on accident |
|
the |
try it when you have time. |
when you don't use nitro, as in:
instead of:
then solid start will use the 5173 port. now the port is aligned to be 3000 in both cases