algolia / jekyll-algolia

Add fast and relevant search to your Jekyll site
https://community.algolia.com/jekyll-algolia/
MIT License
214 stars 35 forks source link

Error when deploying on Vercel #191

Open Pathsis opened 2 years ago

Pathsis commented 2 years ago

When I deployed on Vercel, I received the following error:

截屏2022-07-15 17 07 56

It correctly uploads the index to algolia, but cannot complete the final build.

My configuration on Vercel is:

截屏2022-07-15 17 09 01

By the way, I did not build locally, but operated all on Vercel.

Haroenv commented 2 years ago

You have made it so the build command is only indexing to Algolia, you want it to also create the site, so that would be bundle exec jekyll build && bundle exec jekyll algolia for the build command :)

Pathsis commented 2 years ago

You have made it so the build command is only indexing to Algolia, you want it to also create the site, so that would be bundle exec jekyll build && bundle exec jekyll algolia for the build command :)

You have made it so the build command is only indexing to Algolia, you want it to also create the site, so that would be bundle exec jekyll build && bundle exec jekyll algolia for the build command :)

Thank you very much! It would be more friendly for newbies if this new command could be written in the official documentation. I am now using this command:jekyll build & ALGOLIA_API_KEY='your_admin_api' bundle exec jekyll algolia.