Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when deploying on Vercel #191

Open
Pathsis opened this issue Jul 15, 2022 · 2 comments
Open

Error when deploying on Vercel #191

Pathsis opened this issue Jul 15, 2022 · 2 comments

Comments

@Pathsis
Copy link
Contributor

Pathsis commented Jul 15, 2022

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
Copy link
Contributor

Haroenv commented Jul 18, 2022

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 :)

@Haroenv Haroenv changed the title 在Vercel上部署遭遇错误 Error when deploying on Vercel Jul 18, 2022
@Pathsis
Copy link
Contributor Author

Pathsis commented Jul 18, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants