Skip to content

docs: clarify loadEnv files option is required#506

Open
Ethan-Arrowood wants to merge 2 commits into
mainfrom
docs/load-env-required-files
Open

docs: clarify loadEnv files option is required#506
Ethan-Arrowood wants to merge 2 commits into
mainfrom
docs/load-env-required-files

Conversation

@Ethan-Arrowood
Copy link
Copy Markdown
Member

Summary

  • Adds a Configuration table to the loadEnv reference page (current and v4 versioned docs) that explicitly marks files as a required option
  • The table also documents the optional override flag in one place

Motivation

The previous docs only showed files in examples without indicating it was mandatory, making it easy to incorrectly use loadEnv: true.

Test plan

  • Verify the Configuration table renders correctly on both the current and v4 versioned environment-variables pages
  • Confirm files is visually marked as required

🤖 Generated with Claude Code

@Ethan-Arrowood Ethan-Arrowood requested a review from a team as a code owner May 28, 2026 18:54
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces documentation for the new @harperfast/nextjs plugin, including a dedicated guide, updates to the components overview, static files documentation, and sidebar configuration. It also adds configuration tables to the environment variables documentation. Feedback on the changes includes correcting the GitHub repository URLs for the Apollo and Astro extensions in the overview, and adding a missing getDog function definition to the Next.js actions example to ensure the code snippets are complete.

Comment thread reference/components/overview.md Outdated
Comment on lines +151 to +152
- [`@harperdb/apollo`](https://github.com/HarperFast/apollo) — Serve an Apollo GraphQL server backed by Harper
- [`@harperdb/astro`](https://github.com/HarperFast/astro) — Run an Astro application on Harper
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The GitHub repository URLs for @harperdb/apollo and @harperdb/astro have been incorrectly changed to use the HarperFast organization. Since these packages are under the @harperdb scope, their repositories should remain under the HarperDB GitHub organization.

Suggested change
- [`@harperdb/apollo`](https://github.com/HarperFast/apollo) — Serve an Apollo GraphQL server backed by Harper
- [`@harperdb/astro`](https://github.com/HarperFast/astro) — Run an Astro application on Harper
- [\`@harperdb/apollo\`](https://github.com/HarperDB/apollo) — Serve an Apollo GraphQL server backed by Harper
- [\`@harperdb/astro\`](https://github.com/HarperDB/astro) — Run an Astro application on Harper

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong.

Comment thread reference/components/nextjs.md Outdated
Comment on lines +77 to +83
export async function listDogs() {
const dogs = [];
for await (const dog of tables.Dog.search()) {
dogs.push({ id: dog.id, name: dog.name });
}
return dogs;
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The example code in app/actions.js is missing the definition for getDog, which is imported and used in the subsequent app/dogs/[id]/page.jsx example. Adding getDog to app/actions.js makes the documentation complete and copy-pasteable.

Suggested change
export async function listDogs() {
const dogs = [];
for await (const dog of tables.Dog.search()) {
dogs.push({ id: dog.id, name: dog.name });
}
return dogs;
}
export async function listDogs() {
const dogs = [];
for await (const dog of tables.Dog.search()) {
dogs.push({ id: dog.id, name: dog.name });
}
return dogs;
}
export async function getDog(id) {
return tables.Dog.get(id);
}

@github-actions github-actions Bot temporarily deployed to pr-506 May 28, 2026 18:57 Inactive
@github-actions
Copy link
Copy Markdown

🚀 Preview Deployment

Your preview deployment is ready!

🔗 Preview URL: https://preview.harper-documentation.harperfabric.com/pr-506

This preview will update automatically when you push new commits.

Add a Configuration table to the loadEnv reference page (current and v4
versioned) that explicitly marks `files` as a required option, preventing
the incorrect `loadEnv: true` usage pattern.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Ethan-Arrowood Ethan-Arrowood force-pushed the docs/load-env-required-files branch from 6b1b557 to 1202015 Compare May 28, 2026 19:28
@github-actions github-actions Bot temporarily deployed to pr-506 May 28, 2026 19:31 Inactive
@github-actions
Copy link
Copy Markdown

🚀 Preview Deployment

Your preview deployment is ready!

🔗 Preview URL: https://preview.harper-documentation.harperfabric.com/pr-506

This preview will update automatically when you push new commits.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

🚀 Preview Deployment

Your preview deployment is ready!

🔗 Preview URL: https://preview.harper-documentation.harperfabric.com/pr-506

This preview will update automatically when you push new commits.

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.

3 participants