Raise error if CANONICAL_URL env var is missing in production