Files
Stirling-PDF/frontend/portal/.env
T
James Brunton 1816bad1ba Unified auth for portal and editor (#6725)
# Description of Changes
Refactor frontend auth to the shared folder and hook it up to both the
portal and editor so they share the same system. Also adds various tasks
to help run the portal, including `task dev:portal` to spawn the portal
with the backend, and `task dev:portal:proxy` to spawn the editor,
portal and backend, and a reverse proxy (at localhost:3000) to allow you
to use both at once to simulate how this will actually be deployed,
allowing you to check whether the seamless transition between the two
actually works.
2026-06-22 16:22:36 +00:00

13 lines
588 B
Bash

# Portal environment (committed). Machine-specific overrides go in .env.local.
# Where the "Editor" app switcher / non-admin redirect points. "/" is correct
# for production (backend serves the editor at the root, same origin as the
# portal). In dev, override in .env.local with your running editor's URL
# (e.g. VITE_EDITOR_URL=http://localhost:5173/).
VITE_EDITOR_URL=/
# Force MSW mocks on ("true") or off ("false"). Empty = default (on in dev, off
# in production builds). The single-origin proxy task sets this to "false" so the
# portal uses the real backend.
VITE_PORTAL_MOCKS=