Update next.config.js

Writes redirect for preview images so we're not embedding the API URL in user-facing pages
This commit is contained in:
Justin Edmund 2025-01-20 03:49:51 -08:00
parent 2628d1745b
commit bbc90ee460

View file

@ -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',