Deploying vanilla Start Beta2 to Netlify fails, edge function crashes
Trying to get a base Solid Start build deployed to Netlify, by actioning:
-
pnpm create solid@beta
- pnpm install
- Add netlify.toml, with build.publish
of /dist
- Ensure vite.config
sets start.server.preset
to netlify_edge
Tried deploying with GitHub push to branch and manually with Netlify CLI, to same result.
Build and deploy succeeds on Netlify dashboard, however the browser shows error: This edge function has crashed
Logs:
Test repo here: https://github.com/darrenbarklie/solid-start-beta2
Thanks in advance!GitHub
GitHub - darrenbarklie/solid-start-beta2
Contribute to darrenbarklie/solid-start-beta2 development by creating an account on GitHub.
8 Replies
@daz.dev
./dist
is not output directory. SolidStart builds to ./.output
.
The run command is "start": "node ./.output/server/index.mjs"
In previous version of solidstart, to deploy to vercel I needed to install the adapter, but not anymore. Maybe try deploying to vercel without a netlify.toml and see if netlify "figures it out".@Metru Thanks! Will loop back shortly to try this config. 🙂
Feel free to
@me
if this doesn't work. I'm slowly mastering all the quirks & bugs of this release heheHey @Metru – deployed to Vercel first time:
https://solid-start-beta2-suupjbxso-darrenbarklie.vercel.app/about
Strange that the Netlify journey isn't as smooth.
Vanilla solidstart/mdx build that doesn't provide an netlify.toml and targets
netlify_edge
fails
When I change the Netlify interface Publish directory to
/.output
it similarly fails
Ah yeah, this needs to be set to dist
-- obvious now. Netlify deployed: https://659012a4ca65440008130773--iridescent-toffee-84678c.netlify.app/
No netlify.toml required. I'm starting to understand the advantage of Nitro and Vinxi now, your message prompted me to build locally to better understand the process.
Will try integration of some server functions for completeness.Vercel is a sponsor of solid, so they likely wanted to make 100% sure it was easiest to deploy there
Yeah, I think it was my new-ness to Netlify rather than a problem with Solid Start.