Skip to content

Commit 0866008

Browse files
authored
fix: don't force pg for vercel (#3093)
1 parent 1cc9ca9 commit 0866008

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/presets/vercel.ts

+2-5
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,8 @@ export default definePreset({
66
name: 'vercel',
77
async setupNitro(nitroConfig, options) {
88
if (nitroConfig.runtimeConfig?.content?.database?.type === 'sqlite') {
9-
logger.warn('Deploying sqlite database to Vercel is not possible, switching to Postgres database with `POSTGRES_URL`.')
10-
nitroConfig.runtimeConfig!.content!.database = {
11-
type: 'postgres',
12-
url: process.env.POSTGRES_URL,
13-
}
9+
logger.warn('Deploying sqlite database to Vercel is not recommended if you are not prerendering your site.')
10+
logger.info('We recommend using a hosted SQL database like Neon, Turso, Supabase or others.')
1411
}
1512

1613
await nodePreset.setupNitro(nitroConfig, options)

0 commit comments

Comments
 (0)