diff --git a/pkg/image_proxy/lib/image_proxy_service.dart b/pkg/image_proxy/lib/image_proxy_service.dart index 9c71bad8a..4f1c8a92e 100644 --- a/pkg/image_proxy/lib/image_proxy_service.dart +++ b/pkg/image_proxy/lib/image_proxy_service.dart @@ -311,7 +311,12 @@ void main(List args) async { final server = await serve( handler, InternetAddress.anyIPv6, - int.tryParse(Platform.environment['IMAGE_PROXY_PORT'] ?? '') ?? 80, + int.tryParse( + Platform.environment['IMAGE_PROXY_PORT'] ?? + Platform.environment['PORT'] ?? + '', + ) ?? + 8080, ); print('Serving image proxy on ${server.address}:${server.port}'); }