Production site has issues with search and theme switcher. #718
Unanswered
johnnymatthews
asked this question in
Support
Replies: 1 comment 9 replies
-
My advice:
I got no issues when I did this:
|
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When running the site locally with
npm run start
, everything works as expected. However, when building the site withnpm run build
and then either throwing that on a server (Netlify, Fleek, etc) or running a local server withserve
, neither the search or the dark/light mode switcher works. Here's the repo and branch that's having issues: https://github.com/filecoin-project/filecoin-docs/tree/doks-themeReading other comments and discussions, it seems like this has something to do with the
baseurl
variable in_default/config.toml
andproduction/config.toml
, but I've tried a bunch of different combinations and nothing seems to work.Oddly enough, this other repo has
baseurl
in_default/config.toml
set to"/"
and everything works fine! So I'm not quite sure what's going on. There could be some kind of weird caching thing happening? But I'm pretty sure usingserve
would get around this issue.Sorry for the wall of text. Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions