Detect env also by url