nitrojs / nitrojs/nitro

Allow access to runtime config from build time (kit)

Open
#2,428 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

discussion enhancement pending v2
Dominant language
TypeScript
Stars
11.2k
Forks
899
Avg merge
2d 24m
Merged PRs (30d)
40

Description

Context: https://github.com/unjs/nitro/pull/2404#issuecomment-2086887658

It can be useful for tools and modules to access the same and consistent runtime config interface , that is overridable by environment variables and possibly updateRuntimeConfig (https://github.com/unjs/nitro/issues/2427).

This feature is to be introduced via nitro/kit and therefore put to pending status for now.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the nitro/kit entry point and the context in PR #2404 and issue #2427. The work is complete when tools and modules can access a consistent runtime-config interface at build time, with the stated environment-variable and possible updateRuntimeConfig behavior defined and supported.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.