S
SolidJS4mo ago
w4lker

Deployed in Vercel, but doesnt load CSS files

I am developing with Solid Start, try to deploy with GitHub Pages and Vercel. I'm looking to deploy, it doesn't matter which one I use. With Vercel I overwrote the output directory to .output/public (before it was in .output and it gave me a 404 assuming it couldn't find the index.html) after overwriting, I was able to get it to take the index.html but it didn't load the files. CSS files. With GitHub Pages in the main.yaml of the workflow I do specify the same output, but it shows me the root Readme. could you help me plz? 🙏
8 Replies
brenelz
brenelz4mo ago
Have you set it to use the vercel preset? In app.config.ts
brenelz
brenelz4mo ago
SolidStart Beta Documentation
SolidStart Beta Documentation
Early release documentation and resources for SolidStart Beta
w4lker
w4lker4mo ago
yes, but now i checking documents. Before I was changing the config without knowledge
import { defineConfig } from "@solidjs/start/config";

export default defineConfig({
start: {
ssr: true,
server: {
baseURL: process.env.BASE_PATH,
preset: "static"
}
}
});
import { defineConfig } from "@solidjs/start/config";

export default defineConfig({
start: {
ssr: true,
server: {
baseURL: process.env.BASE_PATH,
preset: "static"
}
}
});
with github pages I had this configuration right now, for vercel I changed preset to "vercel". Then the deploy show 404. I Switched ssr to "false" and deploy show white screen with the previous config of github pages. it showed me the html but without the css
brenelz
brenelz4mo ago
That's really odd I think vercel worked fine for me. Maybe the base url messing it up
nksaraf
nksaraf4mo ago
can we get a small github repro so I can try the same and get back to you with a fix
w4lker
w4lker4mo ago
i deleted baseUrl in config file and app.tsx. then works. Now my issue is supabase denied me. (401 error)
Revxrsal
Revxrsal4mo ago
this is my vercel config, and it's working:
import {defineConfig} from "@solidjs/start/config";

export default defineConfig({
start: {
server: {preset: "vercel"}
},

server: {
fs: {
allow: ["../.."]
}
},
});
import {defineConfig} from "@solidjs/start/config";

export default defineConfig({
start: {
server: {preset: "vercel"}
},

server: {
fs: {
allow: ["../.."]
}
},
});
w4lker
w4lker4mo ago
same error
No description
Want results from more Discord servers?
Add your server
More Posts
How to create a nested menu from a nested object?I'm building a system where I have data from an external source that is structured as an object withis it possible to use matchFilters from @solidjs/router in file routes?```ts import { useParams } from '@solidjs/router' import { Show, createResource } from 'solid-js' imWhat am I missing for HMR, here?I have an old project where I was able to set up HMR with SSR. However, I went to make some changes dev environment constantly not showing pages correctlyo/ i'm running into weird issues with my dev environment. certain pages do not work, and signals/resHow to make optimistic update using solidjs?Currently I do not have any code for optimistic update. I need simple example for this considering bReacting to a store change outside the context of a root or render functionI have a user store to manage user token etc. global-store.ts ```jsx export const [userStore, setUsSetting properties to the unwrapped value of a store doesn't always propagate into the storeThis is a bit of a mouthful but its actually a simple thing to see if you consider the following plIs there any approach to invalidate the back/forward browser cache in solid-router (v 0.12.x)?I previously asked this question in github discussions before realizing this more-active Discord exiSharing data between routesHow can I share data between routes in the new Solid Start? I used nested data loading to do this inModifying <body> tagI am trying to figure out how to modify the body tag to remove a certain class for certain pages to