Spooky Dooky
Spooky Dooky
SSolidJS
Created by Spooky Dooky on 7/8/2024 in #support
Issue deploying Solid Start server functions on Vercel
Hi all, i'm having trouble getting functions with "use server" to run correctly on Vercel. The App iteslf runs just fine - using SPA routing etc all works. Locally, the server functions also work, but once dploying to vercel I get 405 Method not allowed. I have set up the preset
export default defineConfig({
ssr: false,
middleware: "./src/middleware.ts",
appRoot: "src",
server: {
preset: "vercel",
},
...
export default defineConfig({
ssr: false,
middleware: "./src/middleware.ts",
appRoot: "src",
server: {
preset: "vercel",
},
...
and also added the rewrite
{
"rewrites": [
{
"source": "/(.*)",
"destination": "/index.html"
}
]
}
{
"rewrites": [
{
"source": "/(.*)",
"destination": "/index.html"
}
]
}
I see no other mentions of Vercel in the docs, what could be wrong? Thanks!
1 replies
SSolidJS
Created by Spooky Dooky on 6/29/2024 in #support
Vercel server call not Allowed: 405 Method Not Allowed
No description
1 replies