Skip to content

Commit

Permalink
Test use in laptop
Browse files Browse the repository at this point in the history
  • Loading branch information
pulgueta committed Feb 9, 2024
1 parent 6a713ff commit f8cdbbe
Show file tree
Hide file tree
Showing 3 changed files with 1,787 additions and 1,668 deletions.
2 changes: 1 addition & 1 deletion env/client.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ export const env = createEnv({
NEXT_PUBLIC_GEOLOCATION: process.env.NEXT_PUBLIC_GEOLOCATION,
},
onValidationError: (error = ZodError) => {
throw new Error(`[*] Missing environment varibales: ${error.flatten().fieldErrors}`);
throw new Error('[*] Missing environment variables:', error.flatten().fieldErrors);
},
});
7 changes: 1 addition & 6 deletions env/server.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,7 @@ export const env = createEnv({
CLOUDFRONT_HOST: process.env.CLOUDFRONT_HOST,
},
onValidationError: (error = ZodError) => {
console.error(
'[*] Invalid ENV variables:',
error.flatten().fieldErrors
);

throw new Error('[*] Invalid environment varibales');
throw new Error('[*] Invalid environment variables', error.flatten().fieldErrors);
},
isServer: typeof window === 'undefined',
});
Loading

0 comments on commit f8cdbbe

Please sign in to comment.