villainy
villainy
Explore posts from servers
DTDrizzle Team
Created by villainy on 1/20/2024 in #help
Error: Failed to collect page data for /api/company-search/[name]
downgraded next version and it worked
7 replies
DTDrizzle Team
Created by villainy on 1/20/2024 in #help
Error: Failed to collect page data for /api/company-search/[name]
import type { Config } from "drizzle-kit";
import { cwd } from "node:process";
import { loadEnvConfig } from "@next/env";

loadEnvConfig(cwd());

export default {
schema: "./app/db/schema/*.ts",
out: "./app/db/migrations",
driver: "turso",
dbCredentials: {
url: process.env.DATABASE_URL,
authToken: process.env.DATABASE_AUTH_TOKEN,
},
verbose: true,
strict: true,
} as Config;
import type { Config } from "drizzle-kit";
import { cwd } from "node:process";
import { loadEnvConfig } from "@next/env";

loadEnvConfig(cwd());

export default {
schema: "./app/db/schema/*.ts",
out: "./app/db/migrations",
driver: "turso",
dbCredentials: {
url: process.env.DATABASE_URL,
authToken: process.env.DATABASE_AUTH_TOKEN,
},
verbose: true,
strict: true,
} as Config;
7 replies
DTDrizzle Team
Created by villainy on 1/20/2024 in #help
Error: Failed to collect page data for /api/company-search/[name]
{
"compilerOptions": {
"lib": ["dom", "dom.iterable", "esnext"],
"paths": {
"@/*": ["./*"]
},
"allowJs": true,
"skipLibCheck": true,
"strict": false,
"noEmit": true,
"incremental": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"target": "es2017",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"plugins": [
{
"name": "next"
}
]
},
"include": ["next-env.d.ts", ".next/types/**/*.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
}
{
"compilerOptions": {
"lib": ["dom", "dom.iterable", "esnext"],
"paths": {
"@/*": ["./*"]
},
"allowJs": true,
"skipLibCheck": true,
"strict": false,
"noEmit": true,
"incremental": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"target": "es2017",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"plugins": [
{
"name": "next"
}
]
},
"include": ["next-env.d.ts", ".next/types/**/*.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
}
7 replies
DTDrizzle Team
Created by villainy on 1/20/2024 in #help
Error: Failed to collect page data for /api/company-search/[name]
7 replies
DTDrizzle Team
Created by villainy on 1/20/2024 in #help
Error: Failed to collect page data for /api/company-search/[name]
it works in dev and node runtime tho
7 replies
DTDrizzle Team
Created by villainy on 1/20/2024 in #help
Error: Failed to collect page data for /api/company-search/[name]
getting this eror when trying to build for the edge runtime
7 replies