drizzle-team / drizzle-team/drizzle-orm

[BUG]: Well when using the turso driver and Bun in windows the config file doesn't read the Environmental variable

Open
#2,109 2 comments 0 reactions 0 assignees View on GitHub
bug drizzle/kit priority
Dominant language
TypeScript
Stars
35.8k
Forks
1.6k
Avg merge
2d 7h
Merged PRs (30d)
4

Description

### What version of `drizzle-orm` are you using?

0.30.7

### What version of `drizzle-kit` are you using?

0.20.14

### Describe the Bug

```
import type { Config } from "drizzle-kit";

// import dotenv from "dotenv";

// dotenv.config({
// path: ".env.local",
// });

export default {
schema: "./db/schema",
out: "./db/migrations",
driver: "turso",
dbCredentials: {
url: process.env.DATABASE_URL!,
authToken: process.env.TURSO_AUTH_TOKEN,
},
} satisfies Config;

```

Without the commented out part the url doesn't work
I'm using Bun, so I shouldn't need to read Environmental variables
Also the Bun thing works while making migrations, so it's only the push:sqlite, and drizzle-kit push:sqlite that doesn't work

### Expected behavior

_No response_

### Environment & setup

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.