web/.env.example
Set these on your host before deploying. Each platform has an “Environment Variables” section in the deploy flow.
NEXT_PUBLIC_DEPLOY_ENV
For production release, change this to PRODUCTION
NEXT_PUBLIC_EDITION
The deployment edition, SELF_HOSTED
NEXT_PUBLIC_API_PREFIX
The base URL of console application, refers to the Console base URL of WEB service if console domain is different from api or web app…
NEXT_PUBLIC_PUBLIC_API_PREFIX
The URL for Web APP, refers to the Web App base URL of WEB service if web app domain is different from console or api domain. example:…
NEXT_PUBLIC_SENTRY_DSN
NEXT_TELEMETRY_DISABLED
Disable Next.js Telemetry (https://nextjs.org/telemetry)
NEXT_PUBLIC_UPLOAD_IMAGE_AS_ICON
Disable Upload Image as WebApp icon default is false
brew install flyctl && fly launch --from https://github.com/stardust-minus/dify
curl -L https://fly.io/install.sh | sh && fly launch --from https://github.com/stardust-minus/dify
iwr https://fly.io/install.ps1 -useb | iex; fly launch --from https://github.com/stardust-minus/dify