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:
- 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). - Using vercel-CLI to do the same.
- 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
orCommand "npm vercel-install" exited with 1
- 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?