#Wildcard Express Routes Blocking Admin

1 messages · Page 1 of 1 (latest)

proud violet
#

Hello everyone,

Trust you are having a great day!

Below the payload.init within server.ts I have a wildcard route to show a 404 page for any routes that do not exist app.use('*', fourOFour);, this used to work however after upgrading to version 1.6.3 it has now always routed to the 404 & not the payload admin when going to /admin.

Thank you!

#
  • All my other custom routes work, everything except /admin
upbeat moon
#

can you share your server file?

upbeat moon