Instead of PDF I see my own page when deployed #19796
Unanswered
matildaahlberg
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! I recently deployed an app that I've been working on. While I've been working on it, the PDFviewer has been working perfectly, showing PDFs both from Azure and locally uploaded through input. But once I deployed it to Heroku, instead of my PDFs it shows my own start page in the PDFviewer? Has anyone experienced something similar before? I am using Vite, I have the pdfjs web and build packages locally in public/lib. Would really appreciate some input in this issue :)
My code:
import { useState, useEffect } from "react";
function PDFJS({ fileUrl, searchText }) {
const [blobUrl, setBlobUrl] = useState(null);
}
export default PDFJS;
Beta Was this translation helpful? Give feedback.
All reactions