Merge pull request #563 from FoxxMD/middlewareFix

fix: Web endpoint fix
This commit is contained in:
Matt Foxx 2026-04-17 09:22:25 -04:00 committed by GitHub
commit 6f15f15722
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View file

@ -63,4 +63,5 @@ export const nonEmptyBody = (logger: Logger, origin: string = 'Origin'): Express
res.status(400).send('Invalid Content-Type. Must be either application/json or a text wildcard (like text/plain)');
return;
}
next();
}

View file

@ -32,6 +32,9 @@ export default defineConfig(() => {
}
console.debug(`[VITE] BASE_URL ENV: ${process.env.BASE_URL} | Base Url String: ${baseUrlStr}`);
return {
server: {
allowedHosts: (true as true)
},
esbuild: {
minifyIdentifiers: false
},