I am creating a web app where, this app will generate a .html file in public/
directory. And after that i want to show that generated html file
on a page using iframe
.
I am using NextJS
for this task. I have configured next.config.js
for rewrites
but getting 404 error
. I am using Railway for hosting. Since in Vercel we can not access filesystem here.
Instead of generating html dynamically, if I upload that .html file, then i can access that file using iframe
in production.
I think we can not access those files which were not available during build process. (this is my guess , maybe wrong)
How can I solve this problem or should I use another framework ? Thanks