@hlfan commented on this pull request.


> @@ -4,6 +4,7 @@
 //= depend_on legend.yml
 
 OSM = {
+  RAILS_ENV: "<%= Rails.env %>",

Could the boolean conversion be done on the server side?
```ruby
OSM.validateStyle = Rails.env != "production"
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6683#pullrequestreview-3704330861
You are receiving this because you are subscribed to this thread.

Message ID: 
<openstreetmap/openstreetmap-website/pull/6683/review/[email protected]>
_______________________________________________
rails-dev mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to