Giter Site home page Giter Site logo

Comments (5)

potatopotaro avatar potatopotaro commented on July 26, 2024 1

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.

potatopotaro avatar potatopotaro commented on July 26, 2024

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.

potatopotaro avatar potatopotaro commented on July 26, 2024

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.

ryansolid avatar ryansolid commented on July 26, 2024

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.

ryansolid avatar ryansolid commented on July 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.