[object Object]

← back to Dw Pairs Well

server: GET / redirects to /preview.html

c32350830b770ff39396212c5f0152401c48c95b · 2026-05-13 10:12:34 -0700 · Steve Abrams

Files touched

Diff

commit c32350830b770ff39396212c5f0152401c48c95b
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Wed May 13 10:12:34 2026 -0700

    server: GET / redirects to /preview.html
---
 server.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/server.js b/server.js
index 4567f1b..6a1b91e 100644
--- a/server.js
+++ b/server.js
@@ -35,6 +35,9 @@ app.use((req, res, next) => {
 
 app.use(express.static(path.join(__dirname, 'public')));
 
+// Root → the Design Coordinate preview
+app.get('/', (_req, res) => res.redirect(302, '/preview.html'));
+
 app.get('/healthz', async (_req, res) => {
   try {
     const r = await pool.query('SELECT 1 AS ok');

← 675669d preview: relative API paths so prod-served page can fetch (w  ·  back to Dw Pairs Well  ·  design-coordinate: surface real error in .catch (was 'Could a19993c →