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

Edge Runtime support for Adapter plugins #1141

Open
thescientist13 opened this issue Aug 12, 2023 · 1 comment
Open

Edge Runtime support for Adapter plugins #1141

thescientist13 opened this issue Aug 12, 2023 · 1 comment
Labels
Adapter documentation Greenwood specific docs feature New feature or request Plugins Greenwood Plugins RFC Proposal and changes to workflows, architecture, APIs, etc
Milestone

Comments

@thescientist13
Copy link
Member

thescientist13 commented Aug 12, 2023

Type of Change

Feature

Summary

Coming out of #1008 , Greenwood now has support for the following serverless hosting providers

With additional support coming soon for

Most of these platforms also support edge runtimes, so for these and upcoming adapter plugins, so we will want to look into adding Edge support as well. Something to keep in mind though is reproducing the "edge" runtime locally, since there will be geographic and custom context only available at runtime on the hosting platform.

Details

Based on reading done so far, I think there will likely just need to be an option to opt-in per file (or maybe a top level project wide config?) to determine if something should run at the edge or not, e.g.

// src/api/greeting
export async function handler(request, context) {
  // ...
}

export const runtime = 'edge';

Integrating with local hosting platform CLIs would probably be super helpful here.

@thescientist13
Copy link
Member Author

I'm thinking this may need / want to be a post 1.x feature? Not sure which is more important, more adapters, or deeper integration with current adapters? 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Adapter documentation Greenwood specific docs feature New feature or request Plugins Greenwood Plugins RFC Proposal and changes to workflows, architecture, APIs, etc
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant