Skip to content

Commit

Permalink
feat: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Koon committed Jan 20, 2025
1 parent d71abc2 commit 484b34e
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 39 deletions.
21 changes: 0 additions & 21 deletions .env.example

This file was deleted.

20 changes: 10 additions & 10 deletions apps/expo/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import type { ConfigContext, ExpoConfig } from "expo/config";

export default ({ config }: ConfigContext): ExpoConfig => ({
...config,
name: "expo",
slug: "expo",
scheme: "expo",
name: "Underlap",
slug: "underlap",
scheme: "underlap",
version: "0.1.0",
orientation: "portrait",
icon: "./assets/icon.png",
Expand All @@ -19,21 +19,21 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
},
assetBundlePatterns: ["**/*"],
ios: {
bundleIdentifier: "your.bundle.identifier",
bundleIdentifier: "com.koonindustries.underlap",
supportsTablet: true,
},
android: {
package: "your.bundle.identifier",
package: "com.koonindustries.underlap",
adaptiveIcon: {
foregroundImage: "./assets/icon.png",
backgroundColor: "#1F104A",
},
},
// extra: {
// eas: {
// projectId: "your-eas-project-id",
// },
// },
extra: {
eas: {
projectId: "4f809f9a-87ee-4fa0-a9f8-3f1112f19f52",
},
},
experiments: {
tsconfigPaths: true,
typedRoutes: true,
Expand Down
Binary file modified apps/expo/assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
"name": "create-t3-turbo",
"private": true,
"engines": {
"node": ">=20.18.1",
"pnpm": "^9.14.2"
"pnpm": "^9.7.0"
},
"packageManager": "pnpm@9.14.2",
"packageManager": "pnpm@9.7.0",
"scripts": {
"build": "turbo run build",
"clean": "git clean -xdf node_modules",
Expand Down
4 changes: 2 additions & 2 deletions packages/auth/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { z } from "zod";

export const env = createEnv({
server: {
AUTH_DISCORD_ID: z.string().min(1),
AUTH_DISCORD_SECRET: z.string().min(1),
AUTH_GOOGLE_ID: z.string().min(1),
AUTH_GOOGLE_SECRET: z.string().min(1),
AUTH_SECRET:
process.env.NODE_ENV === "production"
? z.string().min(1)
Expand Down
4 changes: 2 additions & 2 deletions packages/auth/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type {
} from "next-auth";
import { skipCSRFCheck } from "@auth/core";
import { DrizzleAdapter } from "@auth/drizzle-adapter";
import Discord from "next-auth/providers/discord";
import Google from "next-auth/providers/google";

import { db } from "@acme/db/client";
import { Account, Session, User } from "@acme/db/schema";
Expand Down Expand Up @@ -38,7 +38,7 @@ export const authConfig = {
}
: {}),
secret: env.AUTH_SECRET,
providers: [Discord],
providers: [Google],
callbacks: {
session: (opts) => {
if (!("user" in opts))
Expand Down
1 change: 1 addition & 0 deletions packages/db/drizzle.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ export default {
dialect: "postgresql",
dbCredentials: { url: nonPoolingUrl },
casing: "snake_case",
tablesFilter: ["trinity_*"]
} satisfies Config;
3 changes: 3 additions & 0 deletions packages/db/src/_table.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { pgTableCreator } from "drizzle-orm/pg-core";

export const pgTable = pgTableCreator((name) => `trinity_${name}`);
3 changes: 2 additions & 1 deletion packages/db/src/schema.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { relations, sql } from "drizzle-orm";
import { pgTable, primaryKey } from "drizzle-orm/pg-core";
import { primaryKey } from "drizzle-orm/pg-core";
import { pgTable } from "./_table";
import { createInsertSchema } from "drizzle-zod";
import { z } from "zod";

Expand Down

0 comments on commit 484b34e

Please sign in to comment.