From 6b98cb4ae584937061206dbdff8350615f364c64 Mon Sep 17 00:00:00 2001 From: Alex Whiteside Date: Mon, 16 Sep 2024 19:04:29 -0400 Subject: [PATCH] Working Examples --- playground/.env.example | 2 +- playground/src/payload.config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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],