Multilingual site and netlify, file unreadable

hI, Netlify now complains about my root index.html. It’s a multilingual sitre, who used to work fine. I personally find index.html very weird:

<!doctype html><html lang=fr-FR>
<title>http://psychototale.com/fr/</title>
<link rel=canonical href=http://psychototale.com/fr/>
<meta name=robots content="noindex"><meta charset=utf-8>
<meta http-equiv=refresh content="0; url=http://psychototale.com/fr/">

Is this normal ?
hugo server is fine, but when I open that file with chromium for instance, nothing appears. I know it’s not an advised way to read a local version of a website… But usually something appears.

With a multilingual site where the default content language is served from a subdirectory, an HTML file that redirects to the default content language is written to the root of the public directory. For example:

<!DOCTYPE html>
<html lang="en-US">
  <head>
    <title>https://example.org/en/</title>
    <link rel="canonical" href="https://example.org/en/">
    <meta name="robots" content="noindex">
    <meta charset="utf-8">
    <meta http-equiv="refresh" content="0; url=https://example.org/en/">
  </head>
</html>

If you don’t see something like that, you or your theme/modules have overridden the embedded alias template.

I just posted the root index.html.
I never touched something like that, nor did I know what that alias template was or where to overwrite it.

I don’t understand your response.

The index.html file that Hugo creates (from its embedded alias template) in the root of your project is valid.

Huh, my question is, is the file whose content I posted valid to you or not ? If so then why is netlify complaining about it specifically ? For instance, it does not have an ending </html> tag, why ?
If it’s not valid, then there’s a bug because I did not modify a template looking even remotely like what you posted.

I have no idea what you’re doing.

As I mentioned above, out-of-the-box Hugo renders this:

<!DOCTYPE html>
<html lang="en-US">
  <head>
    <title>https://example.org/en/</title>
    <link rel="canonical" href="https://example.org/en/">
    <meta name="robots" content="noindex">
    <meta charset="utf-8">
    <meta http-equiv="refresh" content="0; url=https://example.org/en/">
  </head>
</html>

When minified it looks like this:

<!doctype html><html lang=en-US><head><title>https://example.org/en/</title>
<link rel=canonical href=https://example.org/en/><meta name=robots content="noindex"><meta charset=utf-8><meta http-equiv=refresh content="0; url=https://example.org/en/"></head></html>

Both are quite valid.

Do I need to create an example to prove this?

Why the aggression ?
I’m not assuming anything, I’m just puzzled because my output is not like yours -as visibly it is not- and you seem to agree it’s not quite normal. In my case, it doesn’t render out-of-the-box, so either something happens with config, or I changed a template I didn’t know exist, or it’s a bug. I’ll provide a repo.
My version is hugo v0.122.0+extended linux/amd64 BuildDate=2024-02-04T14:35:47Z VendorInfo=debian:0.122.0-1 (because the new breaks some things).

No aggression, just a simple question. I’m happy to do it.

Well no it’s not necessary, I trust that your program works as intended, I just need to figure out for what reason I don’t get the same here.
You may find a repo here, fist time I get git to work, hourra…

Your repo is the public site, not the source.

https://codeberg.org/sentinel166/psychototale/archive/master.tar.gz
I’m not interested in making that excuse of a program work. I can’t make the main branch default, nor can I empty a branch, or delete one.
It’s in master

Your config

[minify]
minifyOutput = true
[minify.tdewolff.html]
keepDefaultAttrVals = false
keepDocumentTags = false   <-- don't do that
keepEndTags = false

Still same message from netlify: “Unable to read file”, or “please drop a folder container an index.html file”. You can try creating a site with it, it will certainly be easier than it was for me to make and upload a repo on codeberg

So here’s a repository (multilingual site) that I use to test Netlify hosting:
https://github.com/jmooring/hosting-netlify

I just updated the Hugo version and pushed changes. Here’s the live site:
https://hosting-netlify.netlify.app/

No problems. The public/index.html file looks like this:

<!DOCTYPE html>
<html lang="en-US">
  <head>
    <title>https://hosting-netlify.netlify.app/en/</title>
    <link rel="canonical" href="https://hosting-netlify.netlify.app/en/">
    <meta name="robots" content="noindex">
    <meta charset="utf-8">
    <meta http-equiv="refresh" content="0; url=https://hosting-netlify.netlify.app/en/">
  </head>
</html>

can you push the repo I gave (without the config parameter mentioned) ?

Here’s the Git repository:
https://github.com/jmooring/psychototale

And your site served via Netlify:
https://psychototale.netlify.app/

Ok index.html has nothing to do with this.
your repo works, but if if I add the real content (content/, assets/ and static/, nothing else), the message comes back. index.html is identical, of course.
I cannot use codeberg/github/whatever, I can’t make that work, period.
But then google drive says some files are illisible and refuse to upload them ??
Something really, really weird is happening, when I build the site with content asset and static.
I could only upload an archive, and it’s 260 Mb, sorry (pictures).

Exactly.