-
Notifications
You must be signed in to change notification settings - Fork 743
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
update solid c3 configs to work with new solid-start beta-2 #4689
Conversation
|
A wrangler prerelease is available for testing. You can install this latest build in your project with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/7396313388/npm-package-wrangler-4689 You can reference the automatically updated head of this PR with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/prs/7396313388/npm-package-wrangler-4689 Or you can use npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/7396313388/npm-package-wrangler-4689 dev path/to/script.js Additional artifacts:npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/7396313388/npm-package-miniflare-4689 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/7396313388/npm-package-cloudflare-pages-shared-4689 npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/7396313388/npm-package-create-cloudflare-4689 --no-auto-update Note that these links will no longer work once the GitHub Actions artifact expires.
| Please ensure constraints are pinned, and |
62ba2a1
to
51f9937
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4689 +/- ##
==========================================
+ Coverage 75.58% 75.64% +0.05%
==========================================
Files 243 243
Lines 13084 13084
Branches 3368 3368
==========================================
+ Hits 9890 9897 +7
+ Misses 3194 3187 -7 |
// Note: we should update the vite.config.ts/js file here and set the preset on | ||
// start.server.preset (as described in the solidStart docs: https://start.solidjs.com/api/vite#configuring-your-application) | ||
// but that doesn't seem to work, so for now we just set the PRESET env variable in the build script | ||
// later we should amend this when it's properly handled on solidStart's side |
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.
never mind, it actually does work, the config needs to look like this:
import { defineConfig } from "@solidjs/start/config";
export default defineConfig({
start: {
server: {
preset: "cloudflare-pages"
}
}
});
(PS: I am pretty sure this didn't work when I opened the PR, maybe they've fixed it upstream 🤷 )
I'm closing this PR as the only change I made is not actually relevant anymore, and also I think that there is a build issue that needs to be solved upstream before we can do anything on our side: solidjs/solid-start#1217 |
No description provided.