Files
webstudio/apps/builder/app/env/env.static.ts
Oleg Isonen 9ea5f70a73 chore: Pages.staging (#5736)
## Description

1. What is this PR about (link the issue and add a short description)

## Steps for reproduction

1. click button
2. expect xyz

## Code Review

- [ ] hi @kof, I need you to do
  - conceptual review (architecture, feature-correctness)
  - detailed review (read every line)
  - test it on preview

## Before requesting a review

- [ ] made a self-review
- [ ] added inline comments where things may be not obvious (the "why",
not "what")

## Before merging

- [ ] tested locally and on preview environment (preview dev login:
0000)
- [ ] updated [test
cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md)
document
- [ ] added tests
- [ ] if any new env variables are added, added them to `.env` file
2026-04-28 19:43:21 +02:00

17 lines
726 B
TypeScript

/**
* Public Build-time Environment Variables
*
* These variables are injected into your bundle at build time based on the environment settings.
* - Configuration: See envPrefix in [vite.config.ts](../../vite.config.ts) (GITHUB_)
* - CI: GitHub Actions runs `vercel build` locally, so each variable used here must be
* exported in .github/actions/vercel/action.yaml
* before the build step.
* - Documentation: Refer to the [Vite documentation](https://vitejs.dev/guide/env-and-mode)
* - Type Definitions: See [vite-env.d.ts](./vite-env.d.ts) in this directory
*/
export const publicStaticEnv = {
VERSION: import.meta.env.GITHUB_SHA ?? "local",
COLLAB_RELAY_URL: import.meta.env.PUBLIC_COLLAB_RELAY_URL,
};