Skip to content

docs(aws): clarify Vite preview environment - #6992

Open
omercnet wants to merge 1 commit into
anomalyco:devfrom
omercnet:fix/6877-vite-preview-env
Open

docs(aws): clarify Vite preview environment#6992
omercnet wants to merge 1 commit into
anomalyco:devfrom
omercnet:fix/6877-vite-preview-env

Conversation

@omercnet

@omercnet omercnet commented Aug 28, 2026

Copy link
Copy Markdown

Summary

  • clarify that commands spawned by the component build inherit its environment
  • document how to run a separately started Vite preview with the component environment
  • distinguish preview process variables from import.meta.env values embedded at build time

Closes #6877

Verification

  • go test ./pkg/project -run '^TestEnvFor'
  • bun run typecheck:platform
  • bun run build:platform
  • bun run docs:generate

Local environment note

bun run --cwd platform test is blocked by the current dependency/runtime environment: Vite cannot resolve @types/node, followed by Pulumi ERR_TRACE_EVENTS_UNAVAILABLE errors.

Co-Authored-By: Claude <noreply@anthropic.com>
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.

environment properties are not loaded into Vite Preview commands

1 participant