Skip to content

feat(cli): #1694 enable custom renderer plugin SSR contexts for API routes#1689

Open
thescientist13 wants to merge 3 commits into
masterfrom
feat/custom-rendering-for-api-routes
Open

feat(cli): #1694 enable custom renderer plugin SSR contexts for API routes#1689
thescientist13 wants to merge 3 commits into
masterfrom
feat/custom-rendering-for-api-routes

Conversation

@thescientist13

@thescientist13 thescientist13 commented Jun 13, 2026

Copy link
Copy Markdown
Member

Related Issue

resolves #1694

Documentation

  1. document renderer plugin handling for API routes www.greenwoodjs.dev#277
    • Make website docs clearer that API Routes are "BYOB"
    • Update Renderer plugin website docs for apiRouteWorker option

Summary of Changes

  1. Extend renderer plugin to run API routes for custom SSR environments
  2. Document Lit Renderer plugin + API Routes + CSS Module Scripts caveat
  3. Add test cases

TODO

  1. Get reproduction fully working - see fix(plugins): #1633 lit css module scripts not emitting style tag content in ssr output #1693
  2. do this first - enhancement(cli): #1690 eliminate api route instantiation during greenwood lifecycles #1691
  3. Make some of these utils shared
  4. Confirm if isolation mode makes a difference with having to manually import CSS register hook in API routes - no, it does not
  5. Update Lit README to call out that register hook is needed in the API route if using CSS Module Scripts (and general API Route usage docs in general)
  6. website documentation tracking issue
  7. Tests
  8. merge after feature(cli): #1622 add support for getStaticPaths and getStaticParams #1675

@thescientist13 thescientist13 changed the title feat: enable custom renderers for API routes feat(cli): enable custom renderers for API routes Jun 13, 2026
@thescientist13 thescientist13 self-assigned this Jun 13, 2026
@thescientist13 thescientist13 added documentation Greenwood specific docs Plugins Greenwood Plugins CLI alpha.7 v0.34.0 labels Jun 13, 2026
@thescientist13 thescientist13 added this to the 1.0 milestone Jun 13, 2026
@thescientist13 thescientist13 changed the title feat(cli): enable custom renderers for API routes feat(cli): #1694 enable custom renderers for API routes Jun 17, 2026
@thescientist13 thescientist13 force-pushed the feat/custom-rendering-for-api-routes branch from 060249d to 588f7c7 Compare June 19, 2026 23:28
@thescientist13 thescientist13 changed the title feat(cli): #1694 enable custom renderers for API routes feat(cli): #1694 enable custom renderer plugin SSR contexts for API routes Jun 20, 2026
@thescientist13 thescientist13 marked this pull request as ready for review June 20, 2026 00:23
@thescientist13 thescientist13 added enhancement Improve something existing (e.g. no docs, new APIs, etc) Types(cript) Requires type definition or TypeScript related work / documentation labels Jun 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLI documentation Greenwood specific docs enhancement Improve something existing (e.g. no docs, new APIs, etc) Plugins Greenwood Plugins SSR Types(cript) Requires type definition or TypeScript related work / documentation

Projects

Status: 🏗 In progress

Development

Successfully merging this pull request may close these issues.

support custom SSR render contexts in API routes

1 participant