99ee63e110
Fixes: https://github.com/zeit/next.js/issues/10734 Related: https://github.com/zeit/now/discussions/4320 This fixes the **Deploy your own** button for the with-yarn-workspaces example. Currently the deployment fails with the following error. ``` Module not found: Can't resolve 'bar' in '/zeit/3ad1f9cd/pages' ``` I also added a dynamic api route to the example, because I had problems configuring vercel to redirect to dynamic routes. This will be the new Vercel-Import-From link: [Deploy](https://vercel.com/import/project?template=https://github.com/Prioe/next.js/tree/fix-with-yarn-workspaces-deploy/examples/with-yarn-workspaces)
5 lines
175 B
JSON
5 lines
175 B
JSON
{
|
|
"version": 2,
|
|
"builds": [{ "src": "packages/web-app/package.json", "use": "@now/next" }],
|
|
"rewrites": [{ "source": "/(.*)", "destination": "/packages/web-app/$1" }]
|
|
}
|