mirror of
https://github.com/HeyPuter/node.git
synced 2026-11-13 20:12:47 -10:00
28 lines
1.3 KiB
Bash
28 lines
1.3 KiB
Bash
# 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>/
|