The vite ?raw suffix syntax for importing static assets as a string does not work correctly when using vercel. Instead of importing the asset as a string, it imports the url of the file as a string as if the ?url syntax had been used.
[error] [vite:load-fallback] Could not load /vercel/path0/src/app.tsx (imported by node_modules/@solidjs/start/dist/client/StartClient.jsx): ENOENT: no such file or directory, open '/vercel/path0/src/app.tsx'
Error: Could not load src/app.tsx (imported by node_modules/@solidjs/start/dist/client/StartClient.jsx): ENOENT: no such file or directory, open '/vercel/path0/src/app.tsx'
[error] [vite:load-fallback] Could not load /vercel/path0/src/app.tsx (imported by node_modules/@solidjs/start/dist/client/StartClient.jsx): ENOENT: no such file or directory, open '/vercel/path0/src/app.tsx'
Error: Could not load src/app.tsx (imported by node_modules/@solidjs/start/dist/client/StartClient.jsx): ENOENT: no such file or directory, open '/vercel/path0/src/app.tsx'
This is using solid start 1.0.2. I have server: {preset: "vercel"} inside app.config.ts. I don't run into this issue locally.