diff --git a/src/runtime/internal/connectors/node-sqlite3.ts b/src/runtime/internal/connectors/node-sqlite3.ts index f99cc08c8..8fbf81d97 100644 --- a/src/runtime/internal/connectors/node-sqlite3.ts +++ b/src/runtime/internal/connectors/node-sqlite3.ts @@ -10,7 +10,7 @@ export interface ConnectorOptions { name?: string } -export default function sqliteConnector(opts: ConnectorOptions) { +export default function nodeSqlite3Connector(opts: ConnectorOptions) { let _db: sqlite3.Database const getDB = () => { if (_db) { @@ -30,7 +30,7 @@ export default function sqliteConnector(opts: ConnectorOptions) { } return { - name: 'sqlite3', + name: 'node-sqlite3', dialect: 'sqlite', exec(sql: string) { return getDB().exec(sql) diff --git a/src/utils/database.ts b/src/utils/database.ts index b35846333..52e14824a 100644 --- a/src/utils/database.ts +++ b/src/utils/database.ts @@ -20,7 +20,7 @@ function isSqlite3Available() { return true } catch { - logger.error('sqlite3 is not available in the current environment') + logger.error('Nuxt Content requires `sqlite3` module to work in WebContainer environment. Please run `npm install sqlite3` to install it and try again.') process.exit(1) } }