fix(core): Allow dotfiles in sendFile to fix WorkFlow settings 404 error (#14744)

This commit is contained in:
Alexandre Andrade
2025-06-03 00:00:27 +10:00
committed by GitHub
parent 1e5b90571d
commit 7928a9b3c2

View File

@@ -234,7 +234,9 @@ export class Server extends AbstractServer {
// Returns all the available timezones
const tzDataFile = resolve(CLI_DIR, 'dist/timezones.json');
this.app.get(`/${this.restEndpoint}/options/timezones`, (_, res) => res.sendFile(tzDataFile));
this.app.get(`/${this.restEndpoint}/options/timezones`, (_, res) =>
res.sendFile(tzDataFile, { dotfiles: 'allow' }),
);
// ----------------------------------------
// Settings