How. to use algolia in wordpress static site?

Hello all, Any guide/doc to use algolia with static site which generated from wordpress? Thank you in advance ?

after I generated the static site, the search result is still working, but when the result is clicked, the open the localhost:port/hello, instead of linking to my new domain name. Thank you.