From bbc90ee460d3eaf525dfd2d945e5b8fc5650c0c6 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Mon, 20 Jan 2025 03:49:51 -0800 Subject: [PATCH] Update next.config.js Writes redirect for preview images so we're not embedding the API URL in user-facing pages --- next.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/next.config.js b/next.config.js index 08b44b2b..3e1f26f4 100644 --- a/next.config.js +++ b/next.config.js @@ -35,6 +35,10 @@ module.exports = { source: '/roadmap', destination: '/about', }, + { + source: '/p/:shortcode/preview', + destination: '/api/preview/:shortcode', + }, { source: '/p/:shortcode/characters', destination: '/p/:shortcode',