We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NEXT_PUBLIC_
Environment variables with NEXT_PUBLIC_ are expanded at build time, so they should not be assigned to credentials, etc.
NEXT_PUBLIC_APP_KEY is stored in the variable below.
NEXT_PUBLIC_APP_KEY
webapp-conversation/config/index.ts
Line 3 in 9d2d092
In addition, this API_KEY is loaded in the client component.
API_KEY
webapp-conversation/app/components/index.tsx
Line 22 in 9d2d092
This makes the API_KEY (=APP_KEY) public.
APP_KEY
Depending on usage, API keys managed by Dify users may be leaked to third-party users.
The Next.js documentation on this topic is here.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Sumamry
Environment variables with
NEXT_PUBLIC_
are expanded at build time, so they should not be assigned to credentials, etc.Current Behavior
NEXT_PUBLIC_APP_KEY
is stored in the variable below.webapp-conversation/config/index.ts
Line 3 in 9d2d092
In addition, this
API_KEY
is loaded in the client component.webapp-conversation/app/components/index.tsx
Line 22 in 9d2d092
This makes the
API_KEY
(=APP_KEY
) public.Depending on usage, API keys managed by Dify users may be leaked to third-party users.
Note
The Next.js documentation on this topic is here.
The text was updated successfully, but these errors were encountered: