PDF viewer working fine on staging as well as local but giving 404 not found on production using React js

Product: Webviewer

Product Version: 8.4.1

Please give a brief summary of your issue: PDF viewer working fine on staging as well as local but giving 404 not found on production using React js

Please describe your issue and provide steps to reproduce it:
PDF viewer working fine on staging as well as local but giving 404 not found on production using React js

Please provide a link to a minimal sample where the issue is reproducible:

Login Id - Jaskaran

Pass - zanran123

Video - Untitled: Apr 29, 2022 2:53 PM.webm - Google Drive

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:APIs:Forums:

Anyone from support available ?

Hello,

Can you confirm that the static lib folder for WebViewer was also deployed? I was looking for the network requests and I don’t quite see it despite seeing the WebViewer iframe mounted:

image

You might also want to compare the errors and network requests to your staging environment to see what is missing.

I also ran into this error:

image

It seems you are mounting WebViewer more than once. I would recommend hiding WebViewer and showing it when you need it to avoid this: PDFTron Systems Inc. | Documentation.

Andy