Fixing type to align with Vite configuration#8193
Fixing type to align with Vite configuration#8193gplusdotgr wants to merge 2 commits intowithastro:mainfrom
Conversation
|
bluwy
left a comment
There was a problem hiding this comment.
This doesn't fix the issue yet. We need to update the schema to allow passing strings:
And make sure we're also using the string:
astro/packages/astro/src/core/dev/container.ts
Lines 59 to 64 in a571a1a
And also that the CLI accepts it:
astro/packages/astro/src/cli/flags.ts
Line 24 in a571a1a
|
Quick question, @bluwy , if this is a core vite feature, why do we need to override / rewrite with our own logic? (I'm sorry if this is a dumb question, just figuring things out) |
|
I don't have the full context, but it's likely because we want to present the dev server as Astro's dev server, and not Vite's. Vite would be an implementation detail. So common server options like host and port are top-level in the Astro config, but if you want to tap into Vite specific server options, like setting up proxies, then you'd have to use the |
|
I see. I'm not sure I have the experience in terms of working with the core of the FW to do all the changes required.. |
|
Is this ready for another review? Or still being worked on? |
|
@matthewp I don't think I can go through with this, some parts of the codebase are a little blackbox to me. |
|
I'll close this for now to clean up the PRs and track the progress in the issue. Thanks for the PR to kick off the discussion |
Changes
pnpm exec changesetTesting
Docs