From daf1b27633ae704627c48036cbb40f092cbb88a6 Mon Sep 17 00:00:00 2001 From: "Jan T. Sott" Date: Fri, 7 Jun 2024 00:08:55 +0200 Subject: [PATCH] update docs --- README.md | 4 ++-- index.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6c10db6..0f5bd3e 100644 --- a/README.md +++ b/README.md @@ -26,8 +26,8 @@ import * as v from 'valibot'; import valibot from 'vite-plugin-valibot-env'; const envSchema = v.object({ - VITE_API_ENDPOINT: v.string([v.url()]), - VITE_ENABLE_LOGGING: v.boolean(), + VITE_API_ENDPOINT: v.pipe([v.string(), v.url()]), + VITE_LOCALE: v.literal('en_US'), }); export default defineConfig({ diff --git a/index.ts b/index.ts index a5ed4e3..05c03d1 100644 --- a/index.ts +++ b/index.ts @@ -24,7 +24,7 @@ type PluginOptions = { * * const envSchema = v.object({ * VITE_API_ENDPOINT: v.pipe([v.string(), v.url()]), - * VITE_ENABLE_LOGGING: v.boolean(), + * VITE_LOCALE: v.literal('en_US'), * }); * * export default defineConfig({