aws: return 501 instead of 400 if no PUBLIC_HOSTNAME configured for TileJSON

This commit is contained in:
Brandon Liu
2023-06-23 20:22:46 +08:00
parent b7ea7e4d6c
commit 0cac52741b

View File

@@ -136,7 +136,7 @@ export const handlerRaw = async (
if (!tile) {
if (!process.env.PUBLIC_HOSTNAME) {
return apiResp(
400,
501,
"PUBLIC_HOSTNAME must be set for TileJSON",
false,
headers