-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #297 from The-Creative-Programming-Group/move-to-t…
…urso-drizzle refactor: Rebuild Search feature
- Loading branch information
Showing
50 changed files
with
1,182 additions
and
199,438 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...b/src/components/ConvexClientProvider.tsx → ...src/components/convex-client-provider.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,35 @@ | ||
import { createEnv } from '@t3-oss/env-nextjs' | ||
import { z } from 'zod' | ||
import { createEnv } from "@t3-oss/env-nextjs"; | ||
import { z } from "zod"; | ||
|
||
export const env = createEnv({ | ||
shared: { | ||
NODE_ENV: z | ||
.enum(['development', 'production', 'test']) | ||
.default('development'), | ||
VERCEL_ENV: z.enum(['development', 'preview', 'production']).optional(), | ||
.enum(["development", "production", "test"]) | ||
.default("development"), | ||
VERCEL_ENV: z.enum(["development", "preview", "production"]).optional(), | ||
VERCEL_URL: z | ||
.string() | ||
.optional() | ||
.transform((v) => (v ? `https://${v}` : undefined)), | ||
PORT: z.coerce.number().default(3000) | ||
PORT: z.coerce.number().default(3000), | ||
}, | ||
client: { | ||
NEXT_PUBLIC_CONVEX_URL: z.string().min(1) | ||
NEXT_PUBLIC_CONVEX_URL: z.string().min(1), | ||
}, | ||
/** | ||
* Destructure all variables from `process.env` to make sure they aren't tree-shaken away. | ||
*/ | ||
runtimeEnv: { | ||
NODE_ENV: process.env.NODE_ENV, | ||
PORT: process.env.PORT, | ||
VERCEL_ENV: process.env.VERCEL_ENV, | ||
VERCEL_URL: process.env.VERCEL_URL, | ||
NEXT_PUBLIC_CONVEX_URL: process.env.NEXT_PUBLIC_CONVEX_URL | ||
NEXT_PUBLIC_CONVEX_URL: process.env.NEXT_PUBLIC_CONVEX_URL, | ||
|
||
// NEXT_PUBLIC_CLIENTVAR: process.env.NEXT_PUBLIC_CLIENTVAR, | ||
}, | ||
skipValidation: | ||
!!process.env.CI || | ||
!!process.env.SKIP_ENV_VALIDATION || | ||
process.env.npm_lifecycle_event === 'lint' | ||
}) | ||
process.env.npm_lifecycle_event === "lint", | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.