1
1
mirror of https://github.com/neosubhamoy/neosubhamoy-portfolio.git synced 2025-12-19 21:43:06 +05:30

(refactor): removed hardcoded dev server local ip from router

This commit is contained in:
2024-02-03 20:04:21 +05:30
parent 546924d42d
commit b66dec37bc

View File

@@ -24,7 +24,7 @@ $devRoutes = [
'/neosubhamoy/htdocs/dmca' => 'dmca.php', '/neosubhamoy/htdocs/dmca' => 'dmca.php',
]; ];
if ($host == "localhost" || $host == "192.168.29.177") { if ($host == "localhost" || $host == $_ENV['LOCAL_IP']) {
$routes = $devRoutes; $routes = $devRoutes;
} }
else { else {