Drizzle TeamDT
Drizzle Team3y ago
5 replies
pedro77

Top-level await is not available in the configured target environment ("node14")

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

import { getDbUrl } from "./src";

export default {
  schema: "./src/schema.ts",
  out: "./.migrations",
  connectionString: await getDbUrl(), // ERRORS HERE
} satisfies Config;


Full description here: https://github.com/drizzle-team/drizzle-orm/issues/721

Is there a way to work around this?
Was this page helpful?