brizzle
brizzle
DTDrizzle Team
Created by sevenwestonroads on 5/12/2023 in #help
Deploying Next.js w/ Drizzle on Vercel with Turborepo
very curious about this, I'm trying to get instrumentation.ts to work as well, but getting an error trying to deploy a simple script
import { migrate } from "drizzle-orm/postgres-js/migrator";
import { sql } from "@vercel/postgres";
import { drizzle } from "drizzle-orm/vercel-postgres";

export async function register(): Promise<void> {
const db = drizzle(sql);
await migrate(db, { migrationsFolder: "drizzle" });
}
import { migrate } from "drizzle-orm/postgres-js/migrator";
import { sql } from "@vercel/postgres";
import { drizzle } from "drizzle-orm/vercel-postgres";

export async function register(): Promise<void> {
const db = drizzle(sql);
await migrate(db, { migrationsFolder: "drizzle" });
}
web:build: Webpack supports "data:" and "file:" URIs by default.
web:build: You may need an additional plugin to handle "node:" URIs.
web:build: at /vercel/path0/node_modules/next/dist/compiled/webpack/bundle5.js:28:399825
web:build: at Hook.eval [as callAsync] (eval at create (/vercel/path0/node_modules/next/dist/compiled/webpack/bundle5.js:13:28867), <anonymous>:6:1)
web:build: at Object.processResource (/vercel/path0/node_modules/next/dist/compiled/webpack/bundle5.js:28:399750)
web:build: at processResource (/vercel/path0/node_modules/next/dist/compiled/loader-runner/LoaderRunner.js:1:5308)
web:build: at iteratePitchingLoaders (/vercel/path0/node_modules/next/dist/compiled/loader-runner/LoaderRunner.js:1:4667)
web:build: at runLoaders (/vercel/path0/node_modules/next/dist/compiled/loader-runner/LoaderRunner.js:1:8590)
web:build: at NormalModule._doBuild (/vercel/path0/node_modules/next/dist/compiled/webpack/bundle5.js:28:399612)
web:build: at NormalModule.build (/vercel/path0/node_modules/next/dist/compiled/webpack/bundle5.js:28:401640)
web:build: at /vercel/path0/node_modules/next/dist/compiled/webpack/bundle5.js:28:82059
web:build: at NormalModule.needBuild (/vercel/path0/node_modules/next/dist/compiled/webpack/bundle5.js:28:405716)
web:build:
web:build: Import trace for requested module:
web:build: node:path
web:build: ../../node_modules/drizzle-orm/postgres-js/migrator.mjs
web:build: Webpack supports "data:" and "file:" URIs by default.
web:build: You may need an additional plugin to handle "node:" URIs.
web:build: at /vercel/path0/node_modules/next/dist/compiled/webpack/bundle5.js:28:399825
web:build: at Hook.eval [as callAsync] (eval at create (/vercel/path0/node_modules/next/dist/compiled/webpack/bundle5.js:13:28867), <anonymous>:6:1)
web:build: at Object.processResource (/vercel/path0/node_modules/next/dist/compiled/webpack/bundle5.js:28:399750)
web:build: at processResource (/vercel/path0/node_modules/next/dist/compiled/loader-runner/LoaderRunner.js:1:5308)
web:build: at iteratePitchingLoaders (/vercel/path0/node_modules/next/dist/compiled/loader-runner/LoaderRunner.js:1:4667)
web:build: at runLoaders (/vercel/path0/node_modules/next/dist/compiled/loader-runner/LoaderRunner.js:1:8590)
web:build: at NormalModule._doBuild (/vercel/path0/node_modules/next/dist/compiled/webpack/bundle5.js:28:399612)
web:build: at NormalModule.build (/vercel/path0/node_modules/next/dist/compiled/webpack/bundle5.js:28:401640)
web:build: at /vercel/path0/node_modules/next/dist/compiled/webpack/bundle5.js:28:82059
web:build: at NormalModule.needBuild (/vercel/path0/node_modules/next/dist/compiled/webpack/bundle5.js:28:405716)
web:build:
web:build: Import trace for requested module:
web:build: node:path
web:build: ../../node_modules/drizzle-orm/postgres-js/migrator.mjs
21 replies