Comments (6)
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.
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.
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.
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.
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.
This should be fixed in alpha.69
from solid-start.
Related Issues (20)
- [Bug?]: Can't import createPlugin from seroval when deploying to render.com HOT 4
- [Bug?]: Plugin types, typescript issues HOT 2
- [Bug?]: create solid package doesn't add .vinxi on gitignore HOT 3
- [Bug]: Redirect are not handled, so they throw errors HOT 2
- [Bug?]: Options are displayed incorrectly when making a new project with CLI HOT 3
- [Bug?]: Types error with Vinxi HOT 16
- [Bug?]: Error in docs:start command HOT 5
- [Bug?]: Plugin typescript issues with UnoCSS HOT 4
- [Bug?]: app.config can't be typescript HOT 1
- [Bug]: Starting a new solidStart application with npm produces an application that can't target Cloudflare Pages HOT 2
- [Bug?]: I'm curious that the routesDir configuration has been lost for months. Don't maintainers use this framework? HOT 4
- [Bug?]: `"use server"` doesn't always work HOT 3
- [Bug?]: `GET` is not a function when used in route load function HOT 2
- [Bug?]: Unable to use HMR with docker local setup HOT 4
- [Bug?]: islands mode bug
- [Bug?]: 0.7.0 - Could not resolve "#start/app" HOT 7
- [Bug?]: 0.7.2, solid-start repo examples can't find "@solidjs/start/client" types with build:all HOT 2
- [Bug?]: unplugin-icons + unplugin-auto-import don't work within filesystem routes HOT 1
- [Bug?]: Error when evaluating SSR module /src/middleware.ts HOT 2
- [Bug?]: Properties set on `event.locals` in `middleware.ts` are missing from `getRequestEvent()!.locals` 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.