Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 15940

How to access public folder in Next JS with readFileSync

$
0
0

How can I access the public folder since the docx is in the public folder, it always access the local directory and not the server(https://i.sstatic.net/eqL9FAvI.png)

I tried removing the path.resolve() and I expect to access the public folder with NextJS


Viewing all articles
Browse latest Browse all 15940


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>