You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: I'm not sure whether this issue should be posted here or in the vinxi. I will start my posting it here, but if the issue is related to vinxi, I will repost there.
When I deploy an SSR SolidStart application to Firebase, it seems the server returns http status code 500's for very simple requests.
For example, this component does not work when deployed to Firebase, but it does when the PRESET=vercel or PRESET=node-server is used:
import{createResource,createSignal,Match,Switch}from"solid-js";functionfetchServerResource(): Promise<string>{"use server";returnnewPromise((resolve)=>{setTimeout(()=>{resolve("Hello from the server!");},1000);});}exportdefaultfunctionSSRLabel(){const[data]=createResource<string>(fetchServerResource);return(<Switch><Matchwhen={data.loading}>Loading...</Match><Matchwhen={data.error}>Error: {data.error}</Match><Matchwhen={data()}>{data()}</Match></Switch>);}
I'd appreciate any input on what is going wrong here, or why the application is not working as intended.
Duplicates
Latest version
Current behavior 😯
Note: I'm not sure whether this issue should be posted here or in the vinxi. I will start my posting it here, but if the issue is related to vinxi, I will repost there.
When I deploy an SSR SolidStart application to Firebase, it seems the server returns http status code 500's for very simple requests.
For example, this component does not work when deployed to Firebase, but it does when the PRESET=vercel or PRESET=node-server is used:
I'd appreciate any input on what is going wrong here, or why the application is not working as intended.
I created a small project to help me troubleshoot the issue: rcannood/solid-project.
Locally (
pnpm run dev
), the application looks like this:When I visit the application hosted on Firebase ( https://solid-project-18cb3.web.app/ ), I get the following:
For good measure, I also deployed the application to Vercel, where everything does work ( https://solid-project-ncfv9j2yb-data-intuitive.vercel.app/ ):
Expected behavior 🤔
I'm expecting the Firebase-deployed application to also say "Hello from the server!".
Steps to reproduce 🕹
I created a minimum reproducible example:
app.config.ts
and set up my Firebase projectcreateResource
and"use server"
PRESET=firebase vinxi build
andnpx firebase-tools deploy
Context 🔦
No response
Your environment 🌎
No response
The text was updated successfully, but these errors were encountered: