Dev Version Works, Deployment show empty page

I deployed a project that worked fine before

after some gui updates (just added images) I redeployed.

Since… i only get a white screen.

i deleted the deployment, created a new one… still same.

it runs very well in my replit dev environment.

I see this errors in the deployment log:

2025-02-16 16:50:17.77

d671de90

User

errno: -2,

2025-02-16 16:50:17.77

d671de90

User

code: ‘ENOENT’,

2025-02-16 16:50:17.77

d671de90

User

syscall: ‘stat’,

2025-02-16 16:50:17.77

d671de90

User

path: ‘/home/runner/workspace/client/public/assets/index-C_B4MOyW.css’

2025-02-16 16:50:17.77

d671de90

User

}

2025-02-16 16:50:17.84

d671de90

User

Error serving file: /assets/index-BZB97uQK.js [Error: ENOENT: no such file or directory, stat ‘/home/runner/workspace/client/public/assets/index-BZB97uQK.js’] {

2025-02-16 16:50:17.84

d671de90

User

errno: -2,

2025-02-16 16:50:17.84

d671de90

User

code: ‘ENOENT’,

2025-02-16 16:50:17.84

d671de90

User

syscall: ‘stat’,

2025-02-16 16:50:17.84

d671de90

User

path: ‘/home/runner/workspace/client/public/assets/index-BZB97uQK.js’

2025-02-16 16:50:17.84

d671de90

User

}

2025-02-16 16:50:18.13

d671de90

User

Error serving file: /assets/favicon.svg [Error: ENOENT: no such file or directory, stat ‘/home/runner/workspace/client/public/assets/favicon.svg’] {

2025-02-16 16:50:18.13

d671de90

User

errno: -2,

2025-02-16 16:50:18.13

d671de90

User

code: ‘ENOENT’,

2025-02-16 16:50:18.13

d671de90

User

syscall: ‘stat’,

2025-02-16 16:50:18.13

d671de90

User

path: ‘/home/runner/workspace/client/public/assets/favicon.svg’

2025-02-16 16:50:18.13

d671de90

User

}

just wondering… that this happens even after i created a new deployment.

looking forward you can help me out.

best christian

I could really need some help. I cant deploy that it runs. always an empty page. Otherwise weeks of work are locked to go public.

my assistant told me this:

his file (index-CVnsY4F6.js) is a bundled JavaScript file generated by Vite during the build process. The random string in the filename (CVnsY4F6) is a hash that Vite adds for cache busting.

If this file is not found, it likely means:

  1. The app hasn’t been built properly
  2. The build files weren’t deployed correctly
  3. The development server isn’t running

the AGENT says this. tries to fix it, but nothing happens:

I see the issue. The problem is that the production build assets are not being served correctly. This happens because the Vite build output is not in the expected location or the server is not configured to serve static files from the correct directory.

2 hours ago

!(data:image/svg+xml,%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20version=%271.1%27%20width=%2722%27%20height=%2722%27/%3e)AI

Searched for “server static file serving configuration and vite integration”

!(data:image/svg+xml,%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20version=%271.1%27%20width=%2722%27%20height=%2722%27/%3e)AI

I understand the issue better now. The problem is with how we’re handling the production build files. Let me fix the server configuration to properly serve the static files from the correct build directory.

----- please Replit Support Help!

Are you trying to do an autoscale deployment or a static deployment? If it’s a react app with client/server then static deployment won’t work and you’ll get that page

It’s react and auto scale
And it was deployed and running
After one update redeploy…
It broke

i got it work now so far. but it took me at least 40 tries. not cool.
Especially as the problem is the deployment i have less control about. it worked on my dev side… and i had it to convince to change the whole way of deployment . something definitly to improve.

Can you send me an email with details on what was broken and what you did to fix it? If it runs in Dev it should run on the autoscale deployment, it literally takes an image of the container and runs exactly that so it should always work.

Hi Kody, I did!
Never got an Reply on that. Now I posted again in the BUG Section.
Let me know how I can help. You can have access to my Project if that helps.
Most annoying… it works in the Dev Environment, in the Deployed Version it acts different. Doesnt find Database entries that are there, while showing some data on other pages.

i am a bit lost. If I just could get it work as its in the Developer Environment does… thats all I want. how to test, to fix otherwise?

no in my deployed version I get “Rate exceeded”, what does that mean?

Please guys, I trust you understand me,
THATS A NO GO, A SHOWSTOPPER.

My App works perfectly in the Development Environment.

In the Deployed Version it acts like its same app,
calling different function from the underlying server.

?? What can I do, try, experiment here?

I just checked and don’t see any emails from you, can you please resend to kody.low@replit.com ? Sorry if I missed your original email.