Can't get local production build to work
Unanswered
Yellow and black potter wasp posted this in #help-forum
Yellow and black potter waspOP
Can someone help me with the local prod build on my project?
What I tried that works the most is setting distDir to out/<repo> but I still get 404 on some scripts in the public directory. Everything works fine on GitHub pages and run dev which perplexes me.
Repo: https://github.com/TommasoTricker/latex-playground
What I tried that works the most is setting distDir to out/<repo> but I still get 404 on some scripts in the public directory. Everything works fine on GitHub pages and run dev which perplexes me.
Repo: https://github.com/TommasoTricker/latex-playground
11 Replies
Yellow and black potter waspOP
I have it on GitHub pages but it works perfectly there, I just want to run a prod build locally
are you using live server to run prod link?
because you'll have to run live server inside the output folder
Yellow and black potter waspOP
i ran with npx serve out with distDir set as out/<repo>, navigated to localhost:3000/<repo> and everything worked except the scripts fetched inside PdfTeXEngine.js, which do however resolve correctly when running the dev command and on github pages
@Yellow and black potter wasp i ran with npx serve out with distDir set as out/<repo>, navigated to localhost:3000/<repo> and everything worked except the scripts fetched inside PdfTeXEngine.js, which do however resolve correctly when running the dev command and on github pages
Have you tried using live server?
It should work just fine
serve, I haven't used so I'm unsure
@Yellow and black potter wasp solved?
Yellow and black potter waspOP
I haven't tried live server yet
@Yellow and black potter wasp I haven't tried live server yet
Can you try and let me know