Skip to content

Commit

Permalink
fix plausible site domain env validation (ohcnetwork#9168)
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad authored Nov 20, 2024
1 parent 2d08896 commit 10369c5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,12 @@ export default defineConfig(({ mode }) => {
REACT_SENTRY_DSN: z.string().url().optional(),
REACT_SENTRY_ENVIRONMENT: z.string().optional(),

REACT_PLAUSIBLE_SITE_DOMAIN: z.string().url().optional(),
REACT_PLAUSIBLE_SITE_DOMAIN: z
.string()
.regex(/^[a-zA-Z0-9][a-zA-Z0-9-_.]*\.[a-zA-Z]{2,}$/)
.optional()
.describe("Domain name without protocol (e.g., sub.domain.com)"),

REACT_PLAUSIBLE_SERVER_URL: z.string().url().optional(),
REACT_CDN_URLS: z
.string()
Expand Down

0 comments on commit 10369c5

Please sign in to comment.