Multilanguage Page with two domains

I am in the process of programming a multi-page homepage. The languages are German and English.

First I would like to show the hugo.toml in English. Everything works perfectly.

Notice: I compile on a VM and I use Google Chrome.

baseURL = "https://example.com"
title = "example"
languageCode = "en-US"
theme = "developer"

enableRobotsTXT = true
relativeUrls = true

[module]
	[[module.imports]]
		path = "github.com/gohugoio/hugo-mod-bootstrap-scss/v5"
  [[module.imports]]
    path = 'github.com/hugomods/icons/vendors/bootstrap'

[languages]
    [languages.en]
      languageCode = "en-US"
      languageName = "English"
      contentDir = "content/en"
      disabled = false

[markup]
	[markup.goldmark]
		[markup.goldmark.renderer]
    		unsafe = true
    [markup.goldmark.renderHooks]
      [markup.goldmark.renderHooks.link]
        enableDefault = true
    [markup.goldmark.parser.attribute]
      block = true

hugo server --disableFastRender
Watching for changes in /home/code-server/Workspace/example.com/{archetypes,content,data,static,themes}
Watching for config changes in /home/code-server/Workspace/example.com/hugo.toml, /home/code-server/Workspace/example.com/go.mod
Start building sites … 
hugo v0.138.0-ad82998d54b3f9f8c2741b67356813b55b3134b9+extended linux/amd64 BuildDate=2024-11-06T11:22:34Z VendorInfo=gohugoio


                   | EN  
-------------------+-----
  Pages            | 12  
  Paginator pages  |  0  
  Non-page files   |  0  
  Static files     | 64  
  Processed images |  0  
  Aliases          |  0  
  Cleaned          |  0  

Built in 476 ms
Environment: "development"
Serving pages from disk
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1) 
Press Ctrl+C to stop

The Url is: https://example.com/proxy/1313/. NO en, why not?

Now I have added the second language to Hugo.toml.

The pages are displayed, unfortunately the CSS is missing.

# baseURL = "https://example.com"
title = "Example"
languageCode = "en-US"
theme = "developer"

enableRobotsTXT = true
relativeUrls = true

[module]
	[[module.imports]]
		path = "github.com/gohugoio/hugo-mod-bootstrap-scss/v5"
  [[module.imports]]
    path = 'github.com/hugomods/icons/vendors/bootstrap'

[languages]
  [languages.de]
    baseURL = "https://example.de"
      languageCode = "de-DE"
      languageName = "Deutsch"
      contentDir = "content/de"
      disabled = false

  [languages.en]
    baseURL = "https://example.com"
      languageCode = "en-US"
      languageName = "English"
      contentDir = "content/en"
      disabled = false

[markup]
	[markup.goldmark]
		[markup.goldmark.renderer]
    		  unsafe = true
    [markup.goldmark.renderHooks]
      [markup.goldmark.renderHooks.link]
        enableDefault = true
    [markup.goldmark.parser.attribute]
      block = true
hugo server --disableFastRender
Watching for changes in /home/code-server/Workspace/example.com/{archetypes,content,data,static,themes}
Watching for config changes in /home/code-server/Workspace/example.com/hugo.toml, /home/code-server/Workspace/example.com/go.mod
Start building sites … 
hugo v0.138.0-ad82998d54b3f9f8c2741b67356813b55b3134b9+extended linux/amd64 BuildDate=2024-11-06T11:22:34Z VendorInfo=gohugoio


                   | EN | DE  
-------------------+----+-----
  Pages            | 12 | 12  
  Paginator pages  |  0 |  0  
  Non-page files   |  0 |  0  
  Static files     | 64 | 64  
  Processed images |  0 |  0  
  Aliases          |  0 |  0  
  Cleaned          |  0 |  0  

Built in 506 ms
Environment: "development"
Serving pages from disk
Web Server is available at http://localhost:1314/ (bind address 127.0.0.1) en
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1) de
Press Ctrl+C to stop

See Requesting Help.

Let us see your code

Include a link to the source code repository of your project, because we really need the context of seeing your templates and partials to be able to help you. It is trivial to do a quick git clone on your repo, then run hugo server in your project, to help you out. On the other hand, recreating your code from screenshots, or sort of guessing at it, is not.

If you can’t share your repository for whatever reason, consider creating a dummy repo that you can share, which reproduces the problem you’re experiencing.