This commit is contained in:
Fergal Moran
2024-01-31 20:38:30 +00:00
parent bb67e85a80
commit 52ea6bb122
8 changed files with 22 additions and 7 deletions

1
.gitignore vendored
View File

@@ -34,6 +34,7 @@ yarn-error.log*
# do not commit any .env files to git, except for the .env.example file. https://create.t3.gg/en/usage/env-variables#using-environment-variables
.env
.env*.local
.env.production
# vercel
.vercel

BIN
bun.lockb

Binary file not shown.

View File

@@ -1,3 +1,5 @@
import "dotenv/config";
import type { Config } from "drizzle-kit";
import { env } from "@/env";

View File

@@ -83,6 +83,7 @@
"socket.io": "^4.7.4",
"socket.io-client": "^4.7.4",
"sonner": "^1.3.1",
"supabase": "^1.136.3",
"superjson": "^2.2.1",
"tailwind-merge": "^2.2.0",
"tailwindcss-animate": "^1.0.7",

View File

@@ -7,9 +7,12 @@ echo Removing migrations
rm -rf drizzle
echo "Dropping db"
if $NODE_NEV ne "production"; then
echo "Dropping production db"
dropdb -f --if-exists kidarr
echo "Creating db"
echo "Creating production db"
createdb kidarr
fi
bun db:generate
bun db:migrate

View File

@@ -1,15 +1,15 @@
import { Button } from "@/components/ui/button";
import React from "react";
import HeadersPrinter from "@/components/debug/headers-printer";
import { SecureDebugDetails } from "@/components/debug/secure-debug-details";
// import HeadersPrinter from "@/components/debug/headers-printer";
// import { SecureDebugDetails } from "@/components/debug/secure-debug-details";
const DebugPage = () => {
return (
<div className="p-8">
<Button variant="default">I am button</Button>
<div className="flex flex-col space-y-2 px-2">
<HeadersPrinter />
<SecureDebugDetails />
{/*<HeadersPrinter />*/}
{/*<SecureDebugDetails />*/}
</div>
</div>
);

View File

@@ -9,6 +9,7 @@ const runMigrate = async () => {
throw new Error("DATABASE_URL is not defined");
}
console.log("Migrating", env.DATABASE_URL, process.env.NODE_ENV);
const connection = postgres(env.DATABASE_URL, { max: 1 });
const db = drizzle(connection);

View File

@@ -22,6 +22,13 @@
"when": 1706464847221,
"tag": "0002_abandoned_luckman",
"breakpoints": true
},
{
"idx": 3,
"version": "5",
"when": 1706731530273,
"tag": "0003_luxuriant_nightshade",
"breakpoints": true
}
]
}