nitrojs / nitrojs/nitro

allow syncing runtime config with full stack frameworks without depending on imports

Open
#1,472 10 comments 1 reaction 1 assignee View on GitHub

@pi0 is already working on this.

Since Apr 25, 2025.

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

Description

Context: https://github.com/nuxt/nuxt/issues/14919

globalThis.__nitro__.useRuntimeConfig() could be useful for frameworks to use nitro runtime API without depending on bundler imports -- mainly for prerenderer preoptimizations --

(update: looking for a more secure way to allow access without imports but also avoid exposing nitro internals to globalThis)

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.