Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
idleberg committed Jun 6, 2024
1 parent 950b753 commit daf1b27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit daf1b27

Please sign in to comment.