Skip to content

fix how management API section accesses process.env#491

Merged
szczys merged 1 commit into
mainfrom
szczys/fix-reference-management-api
Jun 1, 2026
Merged

fix how management API section accesses process.env#491
szczys merged 1 commit into
mainfrom
szczys/fix-reference-management-api

Conversation

@szczys
Copy link
Copy Markdown
Collaborator

@szczys szczys commented Jun 1, 2026

After we removed docusaurus2-dotenv, the management API pages would crash trying to access process.env.*. Use a custom field to inject process.env at runtime so process.env.SWAGGER_URL and process.env.OPENAPI_URL are available.

Signed-off-by: Mike Szczys <michael.szczys@canonical.com>
@szczys szczys requested a review from hasheddan June 1, 2026 21:16
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 1, 2026

Visit the preview URL for this PR (updated for commit 63cf1d3):

https://golioth-docs-dev--pr491-szczys-fix-reference-wkac7ni3.web.app

(expires Wed, 01 Jul 2026 21:18:06 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: f53b02bdc98ce6f5593931ec4c339aa96bac84df

@szczys szczys merged commit 37e0f17 into main Jun 1, 2026
2 checks passed
@szczys szczys deleted the szczys/fix-reference-management-api branch June 1, 2026 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants