Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions platform/src/components/aws/react.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,12 @@ export interface ReactArgs extends SsrSiteArgs {
* 1. In `react-router build`, they are loaded into `process.env`.
* 2. Locally while running `react-router dev` through `sst dev`.
*
* Commands started by the build command inherit these variables. A standalone
* `vite preview` command runs outside SST; use
* `sst shell --target MyWeb -- vite preview` to expose them to the preview
* process. Client values in `import.meta.env` remain the values embedded by
* the build.
*
* :::tip
* You can also `link` resources to your React app and access them in a type-safe way with the [SDK](/docs/reference/sdk/). We recommend linking since it's more secure.
* :::
Expand Down
6 changes: 6 additions & 0 deletions platform/src/components/aws/tan-stack-start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,12 @@ export interface TanStackStartArgs extends SsrSiteArgs {
* 1. In `vite build`, they are loaded into `process.env`.
* 2. Locally while running `sst dev`.
*
* Commands started by the build command inherit these variables. A standalone
* `vite preview` command runs outside SST; use
* `sst shell --target MyWeb -- vite preview` to expose them to the preview
* process. Client values in `import.meta.env` remain the values embedded by
* the build.
*
* :::tip
* You can also `link` resources to your TanStack Start app and access them in a type-safe way with the [SDK](/docs/reference/sdk/). We recommend linking since it's more secure.
* :::
Expand Down