Document ADMIN_PATH and STRAPI_ADMIN_BACKEND_URL environment variables#3143
Open
singhvishalkr wants to merge 1 commit intostrapi:mainfrom
Open
Document ADMIN_PATH and STRAPI_ADMIN_BACKEND_URL environment variables#3143singhvishalkr wants to merge 1 commit intostrapi:mainfrom
singhvishalkr wants to merge 1 commit intostrapi:mainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Issue #2281 flags two environment variables that show up in every
strapi buildlog under "Including the following ENV variables as part of the JS bundle" but are not documented anywhere incms/configurations/environment:ADMIN_PATHSTRAPI_ADMIN_BACKEND_URLBoth are baked into the admin JS bundle at build time by
createBuildContext, and both can be overridden via environment variables before runningstrapi build.STRAPI_TELEMETRY_DISABLEDis the only sibling already in the table; the two missing variables are added next to it so the build-output list maps cleanly to the docs.Where
docusaurus/docs/cms/configurations/environment.md, immediately after the existingSTRAPI_TELEMETRY_DISABLEDrow in the "Strapi's environment variables" table.Defaults
ADMIN_PATHresolves to the pathname ofadmin.url(default/admin).STRAPI_ADMIN_BACKEND_URLresolves to the pathname ofserver.urlwhen the admin panel and the back end share the same origin (typically/), otherwise to the full back-end URL. Source:createBuildContextbuild-time computation usingserver.absoluteUrlandadmin.absoluteUrl.Closes #2281