-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
adjusting cloudflare adapter and solid ssr to work together #4888
Conversation
define better solid ssr config
🦋 Changeset detectedLatest commit: f161c5d The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
this needs to happen for worker build in order to have the correct build mode for the framework, which needs the nodejs no matter if it is for node or the browser.
@@ -0,0 +1,7 @@ | |||
--- | |||
'@astrojs/cloudflare': major |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this only fixes bugs then this shouldn't be a major. Maybe you were just being conservation here, or can you tell me what this breaks?
If this is a true breaking change I think we should have more explanation of the change in the changeset.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
adjusted this one to minor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still discussing this change so let's not merge yet. I think there's a solution here that will work, but one thing we probably need to do (especially if this is a major) is expose esbuild options as config.
There is not really a need to expose the esbuild options as config i think, unless there is lib that needs to import the the logic this adapter now follows is
Is there a minimal repo for the other frameworks (svelte, preact, react, vue, lit) to check againts. I am willing to run through them and check if they generally work with this config in ssr mode, or if there is a fix needed for any of them, to get this working more stable? |
@AirBorne04 there is the framework-* in the I understand the trepidation about adding too much config. If you want to check out the other frameworks and let me know, I'd be happy to proceed with the current changes. The only other thing I would ask for is a lengthier (paragraph or two) explanation of the changes in the changeset. |
hi, i finally got to do the work. Nearly all example projects are running fine, only |
Thanks @AirBorne04, I agree, the issue here wasn't to try and get every framework to work with Cloudflare. Just making sure this solution didn't break the ones that people were already using, and it sounds like you achieved that. Thank you! |
Changes
Testing
Docs