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:
import { createResource, createSignal, Match, Switch } from "solid-js";
function fetchServerResource(): Promise<string> {
"use server";
return new Promise((resolve) => {
setTimeout(() => {
resolve("Hello from the server!");
}, 1000);
});
}
export default function SSRLabel() {
const [data] = createResource<string>(fetchServerResource);
return (
<Switch>
<Match when={data.loading}>Loading...</Match>
<Match when={data.error}>Error: {data.error}</Match>
<Match when={data()}>{data()}</Match>
</Switch>
);
}
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/experiment-solidstart-on-firebase.
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:
- rcannood/experiment-solidstart-on-firebase@33460f0: I set up a SolidStart project
- rcannood/experiment-solidstart-on-firebase@8f7c55f: I enabled SSR in the
app.config.ts and set up my Firebase project
- rcannood/experiment-solidstart-on-firebase@dc6341a: I added a component which fetches data from the server via
createResource and "use server"
- I deployed the application to Firebase with
PRESET=firebase vinxi build and npx firebase-tools deploy
Context 馃敠
No response
Your environment 馃寧
No response
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/experiment-solidstart-on-firebase.
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.tsand set up my Firebase projectcreateResourceand"use server"PRESET=firebase vinxi buildandnpx firebase-tools deployContext 馃敠
No response
Your environment 馃寧
No response