Route Resolver Config - API 413 Response, Request Entity Too Large

Hi

Requests to the content api are returning a 413 error code. I have identified the issue as being the request url exceeding 8192 bytes, which is a cloudfront limit. The reason the requst url is so large is due to the number of entries we have in the route resolver config. We have a large, multi-locale (6) site, for each page type, the route resolver config follows the following pattern:

const routes: prismic.ClientConfig["routes"] = [
  {
    type: "some_page_type",
    path: "/:lang?/english-url/"
  },
  {
    type: "some_page_type",
    lang: "da-dk",
    path: "/:lang/danish-url/"
  },
  {
    type: "some_page_type",
    lang: "sv-se",
    path: "/:lang/swedish-url/"
  },
  {
    type: "some_page_type",
    lang: "no",
    path: "/:lang/norwegian-url/"
  },
  etc...
]

Is there a way to make this more succinct? I have tried removing all whitespace, but that seems to have no affect. This is a significant blocker.

Thanks in advance.