From 5b5a80e1b123497fe33ee9ad799b836c65cef093 Mon Sep 17 00:00:00 2001 From: MarconLP <13001502+MarconLP@users.noreply.github.com> Date: Mon, 10 Apr 2023 23:33:32 +0200 Subject: [PATCH] prettify files --- src/env.mjs | 6 +++--- src/pages/api/trpc/[trpc].ts | 2 +- src/pages/index.tsx | 6 ++---- src/pages/share/[videoId].tsx | 2 +- src/pages/videos.tsx | 6 ++++-- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/env.mjs b/src/env.mjs index edf98cc..51af1ac 100644 --- a/src/env.mjs +++ b/src/env.mjs @@ -16,7 +16,7 @@ const server = z.object({ // Since NextAuth.js automatically uses the VERCEL_URL if present. (str) => process.env.VERCEL_URL ?? str, // VERCEL_URL doesn't include `https` so it cant be validated as a URL - process.env.VERCEL ? z.string().min(1) : z.string().url(), + process.env.VERCEL ? z.string().min(1) : z.string().url() ), // Add `.min(1) on ID and SECRET if you want to make sure they're not empty GOOGLE_CLIENT_ID: z.string(), @@ -74,7 +74,7 @@ if (!!process.env.SKIP_ENV_VALIDATION == false) { if (parsed.success === false) { console.error( "❌ Invalid environment variables:", - parsed.error.flatten().fieldErrors, + parsed.error.flatten().fieldErrors ); throw new Error("Invalid environment variables"); } @@ -88,7 +88,7 @@ if (!!process.env.SKIP_ENV_VALIDATION == false) { throw new Error( process.env.NODE_ENV === "production" ? "❌ Attempted to access a server-side environment variable on the client" - : `❌ Attempted to access server-side environment variable '${prop}' on the client`, + : `❌ Attempted to access server-side environment variable '${prop}' on the client` ); return target[/** @type {keyof typeof target} */ (prop)]; }, diff --git a/src/pages/api/trpc/[trpc].ts b/src/pages/api/trpc/[trpc].ts index 3c744a0..d855a34 100644 --- a/src/pages/api/trpc/[trpc].ts +++ b/src/pages/api/trpc/[trpc].ts @@ -12,7 +12,7 @@ export default createNextApiHandler({ env.NODE_ENV === "development" ? ({ path, error }) => { console.error( - `❌ tRPC failed on ${path ?? ""}: ${error.message}`, + `❌ tRPC failed on ${path ?? ""}: ${error.message}` ); } : undefined, diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 76458c7..79689c0 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -26,9 +26,7 @@ const Home: NextPage = () => { href="/videos" >

Go to Videos →

-
- The entire videos collection -
+
The entire videos collection
@@ -50,7 +48,7 @@ const AuthShowcase: React.FC = () => { const { data: secretMessage } = api.example.getSecretMessage.useQuery( undefined, // no input - { enabled: sessionData?.user !== undefined }, + { enabled: sessionData?.user !== undefined } ); return ( diff --git a/src/pages/share/[videoId].tsx b/src/pages/share/[videoId].tsx index b53c9a5..c79f1ce 100644 --- a/src/pages/share/[videoId].tsx +++ b/src/pages/share/[videoId].tsx @@ -24,4 +24,4 @@ const VideoList: NextPage = () => { ); }; -export default VideoList; \ No newline at end of file +export default VideoList; diff --git a/src/pages/videos.tsx b/src/pages/videos.tsx index e1e82d6..eb30da9 100644 --- a/src/pages/videos.tsx +++ b/src/pages/videos.tsx @@ -16,7 +16,9 @@ const VideoList: NextPage = () => {

- video collection list + + video collection list +

@@ -24,4 +26,4 @@ const VideoList: NextPage = () => { ); }; -export default VideoList; \ No newline at end of file +export default VideoList;