0

I am trying to deploy a Hugo static website to vercel via gitlab and having issues with theme submodule installation. Locally it is installed via git submodule add https://github.com/dsrkafuu/hugo-theme-fuji.git themes/fuji and it works.

When doing the deployment to vercel, apparently the theme is not fetched.

What was tried:

  1. Deploying locally and pushing public directory with built htmls into the repo from where it was fetched by vercel, while pointing Output Dierctory and/or root directory to public (and all other combinations of these parameters).
  2. Using vercel-CLI to do the same.
  3. Creating a shell script to trigger it in the install step of deployment (npm vercel-install) in vercel following this, but I get Command "yarn vercel-install" exited with 128 or Command "npm vercel-install" exited with 1
  4. Cloning the theme repo into the right place via Install Command parameter manually.

Do you know how a submodule can be properly fetched in vercel deployment?

dmayilyan
  • 3
  • 3

0 Answers0