You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
analytics/config
ruslandoga 138e7c06d6
add BUILD_METADATA fallback when parsing (#2503)
### Changes

This PR adds a fallback to empty build metadata when BUILD_METADATA
contains invalid JSON.

Example `warning` log for `BUILD_METADATA={...}`:

```
20:57:57.872 [warning] failed to parse $BUILD_METADATA, reason: ** (Jason.DecodeError) unexpected byte at position 1: 0x2E (".")
```

Fixes https://github.com/plausible/analytics/issues/2491

### Tests
- [x] This PR does not require tests

### Changelog
- [ ] Entry has been added to changelog

### Documentation
- [x] This change does not need a documentation update

### Dark mode
- [x] This PR does not change the UI
4 years ago
..
.env.dev Allow Site DB lookups during ingestion phase (#2408) 4 years ago
.env.test improve first launch experience for self-hosters (#2357) 4 years ago
config.exs Kick off sites by domain cache implementation (#2434) 4 years ago
dev.exs Remove static tracker files (#2116) 4 years ago
prod.exs New config (#595) 6 years ago
runtime.exs add BUILD_METADATA fallback when parsing (#2503) 4 years ago
test.exs Kick off sites by domain cache implementation (#2434) 4 years ago