diff --git a/docs/developer-docs/latest/setup-deployment-guides/configurations/databases/sqlite.md b/docs/developer-docs/latest/setup-deployment-guides/configurations/databases/sqlite.md
index ab2a8aed5f..3044226e28 100644
--- a/docs/developer-docs/latest/setup-deployment-guides/configurations/databases/sqlite.md
+++ b/docs/developer-docs/latest/setup-deployment-guides/configurations/databases/sqlite.md
@@ -8,7 +8,7 @@ canonicalUrl: https://docs.strapi.io/developer-docs/latest/setup-deployment-guid
SQLite is the default ([Quick Start](/developer-docs/latest/getting-started/quick-start.md)) and recommended database to quickly create an app locally.
-## Install SQLite using starter
+## Install SQLite during app creation
Use one of the following commands:
@@ -36,17 +36,20 @@ The [Quick Start Guide](/developer-docs/latest/getting-started/quick-start.md) i
## Install SQLite manually
-In terminal, run the following command:
+In a terminal, run the following command:
+
```sh
npm install better-sqlite3
```
+
+
```sh
yarn add better-sqlite3
```
@@ -54,7 +57,10 @@ yarn add better-sqlite3
-Add the following to your `./config/database.js` file:
+Add the following code to your `./config/database.js` or `./config/database.ts` file:
+
+
+
```js
module.exports = ({ env }) => ({
@@ -68,6 +74,26 @@ module.exports = ({ env }) => ({
});
```
+
+
+
+```ts
+import path from 'path';
+
+export default ({ env }) => ({
+ connection: {
+ client: 'sqlite',
+ connection: {
+ filename: path.join(__dirname, '..', '..', env('DATABASE_FILENAME', '.tmp/data.db')),
+ },
+ useNullAsDefault: true,
+ },
+});
+```
+
+
+
+
## Other SQL Databases (PostgreSQL, MySQL)
Refer to the [configuration section](/developer-docs/latest/setup-deployment-guides/configurations/required/databases.md) for all supported options to setup Strapi with your SQL database.