Refused to execute script from 'http://telmo.test/wp/wp-admin/post.php?post=1146&action=edit&=https://maps.googleapis.com/maps/api/js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
It seems like there is no API key in the URI https://maps.googleapis.com/maps/api/js
Thank you very much for the explanation! I didn’t know it, indeed. Finally, I got it. It was a simple typo (as usual, sorry about it). If you see the function name my_acf_google_map_api, in the add_filter is different: acf_google_map_api.
I can pass the API key variable both ways (throug trellis or directly) and it works fine.
Ah, I missed that. Usually I chuck it all in an anonymous function:
/**
* Load Google Maps API key for ACF
*/
add_filter('acf/fields/google_map/api', function ($api) {
$api['key'] = env('GOOGLE_MAPS_API');
return $api;
});