[Bug?]: "Zero-config" Netlify provider does not load a Netlify preset automatically #1576
Closed
2 tasks done
Labels
bug
Something isn't working
Duplicates
Latest version
Current behavior 😯
When deploying to Netlify and when using the Netlify CLI, the
node-server
Nitro preset is used by default.Expected behavior 🤔
The
netlify
(ornetlify_edge
) preset should be loaded by default, when not otherwise specified.Steps to reproduce 🕹
Steps:
pnpm create solid
pnpm add --global netlify-cli
netlify dev
ornetlify serve
or deploy to NetlifyContext 🔦
Netlify is a Nitro "zero-config provider".
Also, a Netlify preset is required to use any server-side functionality (SSR, etc.) at runtime.
My best guess is that this vinxi logic results in always explicitly passing a preset to Nitro, so all its preset resolution logic ends up being useless as it is overridden by the explicit preset passed in? I don't know if that's quite right though.
If that's true, it would mean all the other zero-config providers aren't zero config either. I haven't verified that.
Your environment 🌎
The text was updated successfully, but these errors were encountered: