Headless
Headless
Explore posts from servers
DTDrizzle Team
Created by Headless on 6/10/2024 in #help
Typescript Error
No description
9 replies
DTDrizzle Team
Created by Headless on 4/8/2024 in #help
Issues with NextJS + Turso + DrizzleORM + LuciaAuth
Hello! I am having issues. I recently have been using the planetscale related libs but since they are sunsetting their hobby tier I switched to turso. I changed all the schemas to match the correct types and whatnot. This is where I connect to my db
// db.js
import { drizzle } from "drizzle-orm/libsql";
import { createClient } from "@libsql/client";
export { default as PermissionInteger, MappedPermissions } from "./permissions";

import * as authSchema from "./schemas/auth";
import * as teamSchema from "./schemas/team";
import * as experienceSchema from "./schemas/experience";
import { DrizzleSQLiteAdapter } from "@lucia-auth/adapter-drizzle";

import * as roblox from "./providers/roblox";

export const connection = createClient({
url: process.env.TURSO_DB_URL!,
authToken: process.env.TURSO_AUTH_TOKEN,
});

export const providers = {
roblox,
};

export const db = drizzle(connection, {
schema: { ...authSchema, ...teamSchema, ...experienceSchema },
});

export const dbAdapter = new DrizzleSQLiteAdapter(
// @ts-ignore
db,
authSchema.session,
authSchema.user
);

export { authSchema, teamSchema, experienceSchema };
// db.js
import { drizzle } from "drizzle-orm/libsql";
import { createClient } from "@libsql/client";
export { default as PermissionInteger, MappedPermissions } from "./permissions";

import * as authSchema from "./schemas/auth";
import * as teamSchema from "./schemas/team";
import * as experienceSchema from "./schemas/experience";
import { DrizzleSQLiteAdapter } from "@lucia-auth/adapter-drizzle";

import * as roblox from "./providers/roblox";

export const connection = createClient({
url: process.env.TURSO_DB_URL!,
authToken: process.env.TURSO_AUTH_TOKEN,
});

export const providers = {
roblox,
};

export const db = drizzle(connection, {
schema: { ...authSchema, ...teamSchema, ...experienceSchema },
});

export const dbAdapter = new DrizzleSQLiteAdapter(
// @ts-ignore
db,
authSchema.session,
authSchema.user
);

export { authSchema, teamSchema, experienceSchema };
Whenever I attempt to build with nextjs I get this entire build log:
13 replies
RRailway
Created by Headless on 2/9/2024 in #✋|help
Reduce ram?
would be what is the smallest the most basic application can consume of ram on railway?
26 replies
RRailway
Created by Headless on 2/6/2024 in #✋|help
Pricing Calculator
Is the pricing calculator gone? Every link I see relating to it goes no where.
11 replies
RRailway
Created by Headless on 2/6/2024 in #✋|help
Autoscaling?
"Always online. Projects scale through traffic spikes and restart through crashes." Is there a way to have the containers scale adjusted to traffic automatically?
22 replies
DTDrizzle Team
Created by Headless on 9/9/2023 in #help
Bun with drizzle
No description
63 replies