feature/IO-3255-simplified-parts-management -Extra checks

This commit is contained in:
Dave
2025-09-11 11:22:59 -04:00
parent f499859078
commit 268b57c38a
2 changed files with 8 additions and 4 deletions

View File

@@ -88,7 +88,7 @@ const partsManagementDeprovisioning = async (req, res) => {
const { logger } = req;
const { shopId } = req.body;
if (process.env.NODE_ENV === "production") {
if (process.env.NODE_ENV === "production" || process.env.HOSTNAME?.endsWith("compute.internal")) {
return res.status(403).json({ error: "Deprovisioning not allowed in production environment." });
}