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

Cloudflare Adapter plugin #1143

Open
thescientist13 opened this issue Aug 12, 2023 · 3 comments
Open

Cloudflare Adapter plugin #1143

thescientist13 opened this issue Aug 12, 2023 · 3 comments
Assignees
Labels
Adapter blocked documentation Greenwood specific docs feature New feature or request
Milestone

Comments

@thescientist13
Copy link
Member

thescientist13 commented Aug 12, 2023

Type of Change

Feature

Summary

Related to #1008 , would like to track a feature to create an adapter plugin for Cloudflare Pages and Workers. Should follow the same conventions as the plugins we've done for Vercel / Netlify.

Details

I think Cloudflare only supports an Edge runtime, so not sure if there will be a distinction between serverless and edge, but let's see how it goes.

@thescientist13
Copy link
Member Author

Making some good progress on this here, but I think things are being blocked on a similar issue encountered while working on Netlify - cloudflare/workers-sdk#7265 (comment)

@thescientist13
Copy link
Member Author

thescientist13 commented Dec 2, 2024

So yeah, looks like we are hard blocked on this until Cloudflare works can support import.meta.url - cloudflare/workerd#2963

edit: I suppose one option could be to figure out how to shim / mock / polyfill the behavior of import.meta.url using Rollup and an AST, but so far nothing seems to be working :/
thescientist13/cloudflare-workers-demo#2

@thescientist13 thescientist13 moved this from 🏗 In progress to 📋 Backlog in [Greenwood] Phase 10 - Ecosystem Compat Dec 2, 2024
@thescientist13
Copy link
Member Author

Got some feedback that import.meta.url is anticipated for sometime this year. 🤞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Adapter blocked documentation Greenwood specific docs feature New feature or request
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant