Skip to content

Conversation

hi-ogawa
Copy link
Contributor

@hi-ogawa hi-ogawa commented Sep 12, 2025

Description

Previously rsc plugin supported only following server handler module:

export default function handler(request: Request): Promise<Response> { ... }

This PR adds support for a following export to align with well-known server runtimes such as

export default {
  fetch(request: Request): Promise<Response> { ... }
}

cc @markdalgleish

@hi-ogawa hi-ogawa marked this pull request as ready for review September 12, 2025 05:28
@hi-ogawa hi-ogawa merged commit cb5ce55 into main Sep 13, 2025
21 checks passed
@hi-ogawa hi-ogawa deleted the 09-12-feat_rsc_support_export_default_fetch_as_server_handler_entry branch September 13, 2025 05:49
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