-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.development.local.example
More file actions
27 lines (23 loc) · 1.32 KB
/
Copy path.env.development.local.example
File metadata and controls
27 lines (23 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Copy this file to `.env.development.local` and fill in values to
# prepopulate the token / cwd fields when running `pnpm dev`.
#
# `.env.development.local` is gitignored (via `*.local`) and is only loaded
# by Vite in development mode. References to these variables in src/ are
# additionally gated behind `import.meta.env.DEV` so production builds
# strip them out entirely — they will not appear in the prod bundle.
VITE_DEV_TOKEN=
VITE_DEV_CWD=
# Anonymous mode: run the workspace with no puter token at all, with the runtime's
# network coming from a wisp relay URL and a per-page peer token instead. This is
# already what happens when no token is available, so it is only needed to *force*
# the anonymous path while VITE_DEV_TOKEN (or a pasted token) is present. `?anon=1`
# does the same thing for one load.
#
# Unlike the two above, the wisp settings are read in production builds too — the
# mode has to work on a deployed page, not just under `pnpm dev`.
VITE_DEV_ANON=
# Where the relay URL comes from. The default endpoint mints one for pages served
# from an origin it recognizes; point this at your own if yours is not on that list.
# VITE_WISP_URL_ENDPOINT=https://sensible-ship-8305.puter.work/
# A relay URL used as-is, skipping the endpoint. Handy for a token you already have.
# VITE_WISP_URL=wss://puter.cafe/<relay-token>/