matsuyoshi30 / harbor

Simple and minimal personal blog theme.
MIT License
186 stars 68 forks source link

Upload theme Vercel or Netlify problem #91

Open MrAntooo opened 3 years ago

MrAntooo commented 3 years ago

Hi, how can I upload the site to Netlify / Vercel? It is not the first time I load a site on those platforms but this time styles and all elements of the static folder are not recognized.

Thanks and congratulations for the work on this theme.

matsuyoshi30 commented 3 years ago

Hi @MrAntooo, thanks for the feedback and sorry for the delay.

I'm not familiar with these platforms, so please check their documents like https://gohugo.io/hosting-and-deployment/hosting-on-netlify/#configure-hugo-version-in-netlify or https://vercel.com/guides/deploying-hugo-with-vercel.

Lunarequest commented 3 years ago

ah I've had this issue with netlify, you need to use the url with a trailing / other wise the styles get screwed up

MartinSchmidt123 commented 3 years ago

I could deploy to Vercel without problems after specifying the buildUrl with -b, i.e. got the the $project -> Settings -> General -> Build & Development Settings and override build and development commands with:

The system/default env vars are documented at: https://vercel.com/docs/environment-variables#system-environment-variables