From 2576a5cd41e80fd933cf14bba2df94acfff854c1 Mon Sep 17 00:00:00 2001 From: greg Date: Sat, 24 May 2025 09:51:54 +0200 Subject: [PATCH] feat: add admin edit page with content preview and save functionality --- src/pages/admin/edit.astro | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/pages/admin/edit.astro b/src/pages/admin/edit.astro index 2834787..5662d12 100644 --- a/src/pages/admin/edit.astro +++ b/src/pages/admin/edit.astro @@ -1,7 +1,11 @@ --- import SiteLayout from '../../components/SiteLayout.astro'; -// In a real app, you'd check authentication here +// Ensure ADMIN_USERNAME and ADMIN_PASSWORD env vars are set in Coolify +// and match the credentials Caddy uses for Basic Auth. +// From Caddy logs, username should be 'Gregman'. +const adminUser = import.meta.env.ADMIN_USERNAME; +const adminPass = import.meta.env.ADMIN_PASSWORD; --- @@ -43,7 +47,7 @@ import SiteLayout from '../../components/SiteLayout.astro'; -