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(environment): use environments.client.build.outDir for preview #16301

Conversation

hi-ogawa
Copy link
Collaborator

@hi-ogawa hi-ogawa commented Mar 29, 2024

Description

This PR is made on top of #16299. New diff is only in packages/vite/src/node/preview.ts.
Now this is rebased on environment branch #16129

Copy link

stackblitz bot commented Mar 29, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@hi-ogawa hi-ogawa changed the title fix(environment): use client environment build.outDir for preview fix(environment): use environments.client.build.outDir for preview Mar 29, 2024
@hi-ogawa hi-ogawa force-pushed the fix-preview-client-build-outDir branch from fa95992 to 6002791 Compare March 29, 2024 05:29
@hi-ogawa hi-ogawa marked this pull request as ready for review April 6, 2024 02:10
@hi-ogawa
Copy link
Collaborator Author

hi-ogawa commented Apr 6, 2024

@patak-dev Do you want still this one to be included? Or is this not necessary if you are thinking about bigger change on preview system like mentioned in #16299 (comment)?

Copy link
Member

@patak-dev patak-dev left a comment

Choose a reason for hiding this comment

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

Ah, sorry. I forgot to merge this one. Let's have it, but as you say, I think we should explore how to make vite preview start a preview of the whole app. Maybe using vite preview --all like we do with build.

@patak-dev patak-dev merged commit 8621c3f into vitejs:feat/environment-api Apr 6, 2024
6 of 8 checks passed
@hi-ogawa hi-ogawa deleted the fix-preview-client-build-outDir branch April 6, 2024 04:01
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