gohugoio / hugo

The world’s fastest framework for building websites.
https://gohugo.io
Apache License 2.0
75.38k stars 7.49k forks source link

Multilanguage deploy to multiple S3 buckets (root) #10156

Open lafraia opened 2 years ago

lafraia commented 2 years ago

Ref https://github.com/gohugoio/hugo/issues/5930#issuecomment-492711570

It seems that you can point a destination path but not use correctly with multi-language deployment.

The following config will copy local files to en/ destination instead of / (root). I'm probably missing something, but is it a deployment variable where I could specify the correct destination root?

[deployment]
[[deployment.targets]]
name = "domain.com"
URL = "s3://domain.com?region=us-east-1"
include = "en/**"
[[deployment.targets]]
name = "domain.com.br"
URL = "s3://domain.com.br?region=us-east-1"
include = "pt-br/**"

[languages]
  [languages.pt-br]
    baseURL = 'https://domain.com.br'
    contentDir = 'content/pt-br'
  [languages.en]
    baseURL = 'https://domain.com'
   contentDir = 'content/en'
github-actions[bot] commented 4 months ago

This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help. If this is a bug and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open. If this is a feature request, and you feel that it is still relevant and valuable, please tell us why. This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.

bep commented 4 months ago

Sorry for the late reply.

I think you need to have a look at this:

https://gohugo.io/content-management/multilingual/#configure-multilingual-multihost