I’m currently trying to use pagefind in my hugo site.
I followed indexing pagefind with
npx pagefind --site public and have confirmed that there are files created under ‘public/pagefind’ directory.
However, when I start the server with
hugo server and goto my “search” page where the html will try to fetch js and css files with the url like “http://localhost:1313/pagefind/pagefind-ui.css” , it cannot fetch and gets 404
I thought that if the files are under the ‘public’ dir were supposed to be accessable since they are considered as static files.
What could I have done wrong? Any suggestions are very welcome