You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This question may be stupid, but I really spent a long time trying to solve it. The default version of hugo is 0.58.2, which is too old to support some new features. I found that I can use vercel CLI and create a vercel.json to set the hugo version like this:
Then I used vercel dev or vercel --local-config ./path-to/vercel.json to deploy the website. The hugo version is set to 0.92.0 successfully. However, I have the following error:
I searched online and found that hugo need .git to work. Previously, I simple relate vercel to my github repo and never get this error. Is there another way to change the hugo version without using vercel CLI or any configurations to let hugo run without .git folder?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
This question may be stupid, but I really spent a long time trying to solve it. The default version of hugo is 0.58.2, which is too old to support some new features. I found that I can use vercel CLI and create a vercel.json to set the hugo version like this:
Then I used
vercel dev
orvercel --local-config ./path-to/vercel.json
to deploy the website. The hugo version is set to 0.92.0 successfully. However, I have the following error:I searched online and found that hugo need .git to work. Previously, I simple relate vercel to my github repo and never get this error. Is there another way to change the hugo version without using vercel CLI or any configurations to let hugo run without .git folder?
Please help. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions