diff --git a/playground/.env.example b/playground/.env.example index 45327b9..43d7edd 100644 --- a/playground/.env.example +++ b/playground/.env.example @@ -1,6 +1,6 @@ # Added by Payload # Database connection string -DATABASE_URI=file:./playground.db +DATABASE_URI=file:./db/playground.db # Used to encrypt JWT tokens PAYLOAD_SECRET=5a9a296d283d03980a3110f3 # Used to format links and URLs diff --git a/playground/src/payload.config.ts b/playground/src/payload.config.ts index 0fa133e..a84d079 100644 --- a/playground/src/payload.config.ts +++ b/playground/src/payload.config.ts @@ -116,7 +116,7 @@ export default buildConfig({ }), db: sqliteAdapter({ client: { - url: process.env.DATABASE_URI || '', + url: process.env.DATABASE_URI || 'file:./db/playground.db', }, }), collections: [Pages, Posts, Media, Categories, Users],