this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix lint issues

+4 -24
+1 -1
apps/expo/src/app/index.tsx
··· 5 5 type ImageSourcePropType, 6 6 } from "react-native"; 7 7 import { SafeAreaView } from "react-native-safe-area-context"; 8 - import { Link, Stack } from "expo-router"; 8 + import { Stack } from "expo-router"; 9 9 import { StatusBar } from "expo-status-bar"; 10 10 11 11 import { LinkButton } from "../components/button";
-20
apps/nextjs/src/env.mjs
··· 5 5 * built with invalid env vars. 6 6 */ 7 7 const server = z.object({ 8 - DATABASE_URL: z.string().url(), 9 8 NODE_ENV: z.enum(["development", "test", "production"]), 10 - NEXTAUTH_SECRET: 11 - process.env.NODE_ENV === "production" 12 - ? z.string().min(1) 13 - : z.string().min(1).optional(), 14 - NEXTAUTH_URL: z.preprocess( 15 - // This makes Vercel deployments not fail if you don't set NEXTAUTH_URL 16 - // Since NextAuth.js automatically uses the VERCEL_URL if present. 17 - (str) => process.env.VERCEL_URL ?? str, 18 - // VERCEL_URL doesn't include `https` so it cant be validated as a URL 19 - process.env.VERCEL ? z.string() : z.string().url(), 20 - ), 21 - // Add `.min(1) on ID and SECRET if you want to make sure they're not empty 22 - DISCORD_CLIENT_ID: z.string(), 23 - DISCORD_CLIENT_SECRET: z.string(), 24 9 }); 25 10 26 11 /** ··· 38 23 * @type {Record<keyof z.infer<typeof server> | keyof z.infer<typeof client>, string | undefined>} 39 24 */ 40 25 const processEnv = { 41 - DATABASE_URL: process.env.DATABASE_URL, 42 26 NODE_ENV: process.env.NODE_ENV, 43 - NEXTAUTH_SECRET: process.env.NEXTAUTH_SECRET, 44 - NEXTAUTH_URL: process.env.NEXTAUTH_URL, 45 - DISCORD_CLIENT_ID: process.env.DISCORD_CLIENT_ID, 46 - DISCORD_CLIENT_SECRET: process.env.DISCORD_CLIENT_SECRET, 47 27 // NEXT_PUBLIC_CLIENTVAR: process.env.NEXT_PUBLIC_CLIENTVAR, 48 28 }; 49 29
+3 -3
packages/api/src/trpc.ts
··· 31 31 * - trpc's `createSSGHelpers` where we don't have req/res 32 32 * @see https://create.t3.gg/en/usage/trpc#-servertrpccontextts 33 33 */ 34 - const createInnerTRPCContext = (opts: CreateContextOptions) => { 34 + const createInnerTRPCContext = (_opts: CreateContextOptions) => { 35 35 return {}; 36 36 }; 37 37 ··· 40 40 * process every request that goes through your tRPC endpoint 41 41 * @link https://trpc.io/docs/context 42 42 */ 43 - export const createTRPCContext = async (opts: CreateNextContextOptions) => { 44 - const { req, res } = opts; 43 + export const createTRPCContext = (_opts: CreateNextContextOptions) => { 44 + // const { req, res } = opts; 45 45 46 46 // Get the session from the server using the unstable_getServerSession wrapper function 47 47