Skip to content

Conversation

@mtwichel
Copy link
Contributor

@mtwichel mtwichel commented Oct 29, 2025

Status

READY

Description

Adds the defaultDocument parameter to the createStaticFileHandler function which allows developers to specify a file to return at the root of a handler.

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

@felangel felangel changed the title feat: add default document on static file handlers feat(dart_frog): add defaultDocument to createStaticFileHandler Oct 30, 2025
Copy link
Contributor

@felangel felangel left a comment

Choose a reason for hiding this comment

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

LGTM ✅

@felangel
Copy link
Contributor

I think this doesn't technically solve #445 since that involves automatically serving an index.html if one exists. We can try to address that in a separate PR

@felangel felangel merged commit fb66298 into dart-frog-dev:main Oct 30, 2025
26 checks passed
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.

feat: Serve public/index.html from root handler

2 participants