Skip to content

Commit

Permalink
Make stage max 256 characters long
Browse files Browse the repository at this point in the history
  • Loading branch information
Siegrift committed Oct 31, 2023
1 parent 2323879 commit 5352a03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/pusher/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ secrets. For example:
##### `stage`

An identifier of the deployment stage. This is used to distinguish between different deployments of pusher, for example
`dev`, `staging` or `production`. The stage value can have 16 characters at maximum and can only include lowercase
`dev`, `staging` or `production`. The stage value can have 256 characters at maximum and can only include lowercase
alphanumeric characters and hyphens.

##### `rateLimiting`
Expand Down
2 changes: 1 addition & 1 deletion packages/pusher/src/validation/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ export const nodeSettingsSchema = z.object({
rateLimiting: rateLimitingSchema,
stage: z
.string()
.regex(/^[\da-z-]{1,16}$/, 'Only lowercase letters, numbers and hyphens are allowed (max 16 characters)'),
.regex(/^[\da-z-]{1,256}$/, 'Only lowercase letters, numbers and hyphens are allowed (max 256 characters)'),
});

export type NodeSettings = z.infer<typeof nodeSettingsSchema>;
Expand Down

0 comments on commit 5352a03

Please sign in to comment.