In either case, you get huge JSONs with meta-information about the website.
The structure is roughly:
``` json
{
"repoUrl": "https://codeberg.org/.../pages.git",
"branch": "pages",
"commit": "abcdef...",
"contents": {
"": {
"type": "Directory"
},
".domains": {
// ...
},
".gitignore": {
// ...
},
"assets": {
"type": "Directory"
},
"assets/...png": {
"type": "ExternalFile",
"originalSize": "...",
"compressedSize": "...",
"data": "...",
"transform": "Identity",
"contentType": "image/png",
"gitHash": "..."
},
"index.html": {
"type": "ExternalFile",
"originalSize": "...",
"compressedSize": "...",
"data": "...",
"transform": "Zstd",
"contentType": "text/html; charset=utf-8",
"gitHash": "..."
}
// ...
},
"originalSize": "...",
"compressedSize": "...",
"storedSize": "...",
"redirects": [
{
"from": "/foo",
"to": "/bar",
"status": 301,
"force": false
},
// ...
],
"headers": [],
"basicAuth": [],
"problems": [
{
"path": "_redirects",
"cause": "rule #1 \"/*/ /:splat.html 301\": splat * must be its own final segment of the path"
}
]
}
```
And here’s the problem, under the `"problems"` key: the redirect is malformed!
In the end, this is one of the [changes and deprecations](/codeberg-pages/migrating-from-pages-v2/#breaking-changes-and-deprecations) that happened in migration.
But lamenting that is a story for another time.
Problem diagnosed through the useful git-pages manifest!