How to post drizzle.config.json to the vercel, (it should not be on the github)

deranged
2 Replies
Andrii Sherman
I promise that docs will be updated for it. But we have released an update recently in drizzle-kit@db-push tag You can use config in .ts and provide env variables, so it can actually be on GitHub
// drizzle.config.ts
import type { Config } from "drizzle-kit";
import "dotenv/config";

export default {
schema: "./schema.ts",
connectionString: process.env.DB_URL,
} satisfies Config;
// drizzle.config.ts
import type { Config } from "drizzle-kit";
import "dotenv/config";

export default {
schema: "./schema.ts",
connectionString: process.env.DB_URL,
} satisfies Config;
link to docs(in current state) - https://github.com/drizzle-team/drizzle-orm/blob/db-push-docs/docs/db-push.preview.md Hope it will help you for now
l
l2y ago
Thenks a lot, so dumb from me thanks
Want results from more Discord servers?
Add your server