Spooky Dooky
Spooky Dooky
SSolidJS
Created by Spooky Dooky on 5/9/2025 in #support
Recursive routes with Solid Router
I'm trying to build something akin to a file explorer using solid router, where each sub path is like a directory and the final slug is the file. However, trying to model this naively with a recursive router component runs into a call stack max depth. Makes sense, I guess. I attempted lazy loading, but only the rendered component is lazy loaded - not the route itself. Is something like this possible? Right now I'm working with a [...path] route and just doing all the data loading, path extraction etc by hand. Thanks for the Tipps. (P.S. I found that React Router has this <Match> component, where they show a nice example of a linked list as recursive rendering. But I found nothing like this in solid-router and all my attempts failed.) Thanks!
1 replies
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