Giter VIP home page Giter VIP logo

Comments (6)

 avatar commented on May 9, 2024

Can you mention to which Hosting Provider you are trying to deploy because Solid Start has adapters that can change the output of your code. Did you try to install these adapters? If not try to see these:
https://github.com/solidjs/solid-start/tree/main/packages
https://m.youtube.com/watch?v=O2kFXlNSdn0

If your node.js version is lower than node 14, try to install the latest or the LTS version.

from solid-start.

modmanx avatar modmanx commented on May 9, 2024

Hello, we are currently doing Dockerfile build on Cloud Run. We have same problem locally if we do npm run build and cd to dist and run node index.js

We are using solid-start-node.

from solid-start.

modmanx avatar modmanx commented on May 9, 2024

Hello again, we managed to fix the issue by moving files in public/ to public/assets, as assets seems to be hard-coded in connection with polka (i have not yet figured out why polka is used)

const server = polka().use("/assets",
		comp,
		assets_handler
	).use(comp, render);

from solid-start.

ryansolid avatar ryansolid commented on May 9, 2024

Yeah when I first made the adapters I missed making them configurable. More of that stuff has come in over time. I just grabbed Polka because Luke Edwards makes good stuff and I figured since this was abstracted away the need for Express wasn't necessary. But maybe there are reasons to go with Express anyway given it is more known and used.

from solid-start.

modmanx avatar modmanx commented on May 9, 2024

I understand ;) I was just not sure if I missed something because https://github.com/solidjs/solid-start/tree/main/examples/hackernews-ts does not have public files in assets folder and it works just fine here - https://hackernews.ryansolid.workers.dev/

from solid-start.

ryansolid avatar ryansolid commented on May 9, 2024

This should be fixed in alpha.69

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.