How to configure environment variables for the frontend.
Info: The@/web
app typically only requires public environment variables (prefixed withNEXT_PUBLIC_
). For backend or sensitive variables, refer to Quickstart.
.env
variables for @/web
unless integrating with external APIs or services directly from the frontend.Info: If you want to add, you do not need to add custom.env
variables for@/web
unless integrating with external APIs or services directly from the frontend.
.env.example
file in apps/web/
to a new file named .env
:
.env
to include variables such as:
PAYLOAD_PUBLIC_SERVER_URL
in your .env
file to the correct URL. For example: