Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: include preset config in .output/nitro.json #2807

Merged
merged 2 commits into from
Oct 21, 2024
Merged

feat: include preset config in .output/nitro.json #2807

merged 2 commits into from
Oct 21, 2024

Conversation

pi0
Copy link
Member

@pi0 pi0 commented Oct 21, 2024

This PR adds preset-specific config into .output/nitro.json to be usable for external tools consuming nitro build output.

Original use case: SST needs awsLambda.streaming flag to adjust it's behavior.

Example:

import { defineNitroConfig } from "nitropack/config";

export default defineNitroConfig({
  compatibilityDate: "2024-09-19",
  awsLambda: {
    streaming: true,
  },
});
{
  "date": "2024-10-21T02:49:49.524Z",
  "preset": "aws-lambda",
  "framework": {
    "name": "nitro",
    "version": ""
  },
  "versions": {
    "nitro": "2.9.6"
  },
  "commands": {},
  "config": {
    "awsLambda": {
      "streaming": true
    }
  }
}

@pi0 pi0 self-assigned this Oct 21, 2024
@pi0 pi0 changed the title feat: include preset-config in .output/nitro.json feat: include preset config in .output/nitro.json Oct 21, 2024
@pi0 pi0 merged commit 14b4891 into v2 Oct 21, 2024
5 checks passed
@pi0 pi0 deleted the feat/nitro-info branch October 21, 2024 02:51
@pi0 pi0 mentioned this pull request Oct 31, 2024
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.

1 participant