Skip to content

Commit c0de38b

Browse files
committed
fix(helm): allow empty NEXT_PUBLIC_SOCKET_URL in values schema
The default in values.yaml is now "" (empty string), which falls back to the page origin at runtime. The schema previously required a valid URI, which would reject the default. Mirror the INTERNAL_API_BASE_URL pattern using anyOf with const "". Also add TRUSTED_ORIGINS to the schema.
1 parent 99b2880 commit c0de38b

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

helm/sim/values.schema.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,19 @@
144144
},
145145
"NEXT_PUBLIC_SOCKET_URL": {
146146
"type": "string",
147-
"format": "uri",
148-
"description": "Public socket URL"
147+
"anyOf": [
148+
{
149+
"format": "uri"
150+
},
151+
{
152+
"const": ""
153+
}
154+
],
155+
"description": "Public socket URL; leave empty to default to the page origin (assumes reverse proxy routes /socket.io)"
156+
},
157+
"TRUSTED_ORIGINS": {
158+
"type": "string",
159+
"description": "Comma-separated additional public origins to trust for auth (e.g. 'https://app.example.com,https://www.example.com'). Merged into Better Auth trustedOrigins."
149160
},
150161
"NODE_ENV": {
151162
"type": "string",

0 commit comments

Comments
 (0)