Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Static and Serverless Hosting Runtime Adapters #1008

@thescientist13

Description

@thescientist13

Overview

Would like to provide Greenwood with the ability to adapt to specific runtimes / platforms for support Serverless and Edge runtimes like:

In particular, supporting #1007 , which will vary per hosting provider. The goal would be to support the following as Serverless and / or Edge functions:

  1. API Routes
  2. SSR Routes (would this need evaluate (remove) use of Workers for SSR and prerendering #1088 )

Details

Main thoughts include

  1. One off page routes (see SSR and Serverless experiments [DO NOT MERGE]  #812)
  2. Being able to work without a filesystem - Agnostic Runtime #953
  3. SSR pages will need access to the request object, no?
  4. Do we need single file bundles (SFBs) for SSR page and API routes #1118 ?
  5. Consolidate and document build out; manifest.json, resources.json, etc as identified in Enhancement/issue 946 decouple build and serve commands from workspace #1079 including a serializable version of the graph and manifest for SSR (as identified in Enhancement/issue 946 decouple build and serve commands from workspace #1079)
  6. better way to "DI" compilation into generated SSR pages instead of through handler in bundle lifecycle? (As identified in Enhancement/issue 946 decouple build and serve commands from workspace #1079) - completed in evaluate (remove) use of Workers for SSR and prerendering #1088
  7. Should API and SSR pages have chunks, or be entirely self contained and also minified in rollup.config.js? (As identified in Enhancement/issue 946 decouple build and serve commands from workspace #1079 ) - deferred to single file bundles (SFBs) for SSR page and API routes #1118
  8. WCC Enhancements
  9. Maybe a guide self hosting for greenwood serve?
  10. Rehydrate graph in memory

In concert with #953

Metadata

Metadata

Labels

CLIRFCProposal and changes to workflows, architecture, APIs, etcalpha.1documentationGreenwood specific docsfeatureNew feature or requestv0.29.0

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions