Comments (5)
Yes I saw! Thank you good sir! I managed to get my own custom adapter working, with the exception of the "server/worker entry" (aka app.jsx
within the solid-start
package; webStream
in my particular case).
I'm moving on to HTTP2 push now (e.g. https://developers.cloudflare.com/workers/examples/http2-server-push), trying to send assets ASAP.
I'll make sure to share my code with you at some point in discord, and likely a generalized cf worker adapter as a PR.
Thank you for all the badass work you do Ryan, cheers 🍻
from solid-start.
I think this is an area I can contribute to as well, so please let me know if this functionality is desired or if the team has an own approach they'd like assistance with.
from solid-start.
For those interested, it is possible to specify a custom adapter by providing an absolute path in the adapter
field, like so:
// vite.config.js
import { fileURLToPath } from "url";
import { dirname } from "path";
const __dirname = dirname(fileURLToPath(import.meta.url));
adapter: `${__dirname}/custom-adapter.js`,
Both url
and path
should already be installed through solid-start and such. Your custom-adapter.js
will need to emulate something like this.
from solid-start.
I will make the change to import. However, leaving it wide open is another thing. I feel that would add complexity that unsure want to worry about at this point.
from solid-start.
Ok I have made that change and published it now. So it should be a lot easy to load in custom adaptors.
I think we take the other suggestion under advisement but see no reason to rush towards that now.
from solid-start.
Related Issues (20)
- [Bug?]: Something went wrong HOT 2
- [Bug?]: Redirect thrown from action cause resulting page to not see search params correctly HOT 7
- [Bug?]: Incorrect classname active on the root page (active/inactive) HOT 1
- [Bug?]: SolidStart fails to start with Daisyui and tailwindcss HOT 20
- [Bug?]: resolve type fail on `moduleResolution: "Bundler"` HOT 2
- [Bug?]: rename the index.tsx file to the name of the folder always gives a 404 HOT 5
- [Bug?]: bun create solid error on windows 11 HOT 1
- [Bug?]: Server functions that throw or return redirects when called in an action do not redirect HOT 10
- [Bug?]: Vite field in the app config has wrong types HOT 1
- [Bug?]: server function that contain await prisma function will throws error HOT 3
- [Bug?]: dup signIn import from @solid-mediaket/auth -> build error HOT 5
- [Bug?]: `Button type attribute has not been set.` in templates
- [Bug?]: createResource fails if using SSR and an exception is thrown in the wrapped function HOT 4
- [ssr]: Spreading `readOnly: false` on input applies `readonly` HOT 2
- [Bug?]: Middleware returning Response is not working properly
- [Bug?]: SolidStart aws_lambda preset unable to serve JS and CSS artifacts when deployed to AWS Lambda HOT 4
- [Bug?]: Client bundle including imports from "use server" functions HOT 2
- [Bug?]: 404 page doesn't work in cloudflare pages HOT 2
- [Feature?]: Allow `init` of projects with both `vitest` and `tailwindcss` HOT 2
- [Bug?]: Deno downloading error - npm package 'uWebSockets.js' does not exist HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from solid-start.