Local version works great, deployed version doesn't work #609
-
Hey, if I run my site locally using But when I deploy to Vercel -- everything builds and deploys fine. But the search doesn't work. You can see it in action here: https://nickhodges.com selecting the magnifying glass in the upper right. What might be the reason? |
Beta Was this translation helpful? Give feedback.
Answered by
NickHodges
Apr 30, 2024
Replies: 1 comment 2 replies
-
Hmm, can you share any build logs from your Vercel build? Looks like the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ahh! That was helpful!
So I looked closely at the build logs, and I saw this:
09:57:13 [build] directory: /vercel/path0/.vercel/output/static/
so I set my
postbuild
to this:"postbuild": "pagefind --site .vercel/output/static/"
and now it works!
Thank you for your help. I'm grateful to you. All the way from New Zealand! Kia Ora!