The rewrite destination needs to go to /client/$1 similar to what this fellow did, https://github.com/jeantil/next-9-ts-aliases-workspaces.
"rewrites": [
{ "source": "/api/(.*)", "destination": "/server/index.js" },
{ "source": "/(.*)", "destination": "/client/$1" }
]