Unverified Commit 99ee63e1 authored by Michael Albertz's avatar Michael Albertz Committed by GitHub

[Examples] Fix with-yarn-workspaces Vercel deploy button (#12867)

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)
parent 53b478cc
{
"version": 2,
"builds": [{ "src": "packages/web-app/package.json", "use": "@now/next" }],
"rewrites": [{ "source": "/(.*)", "destination": "/packages/web-app/$1" }]
}
export default function handler(req, res) {
return res.send(req.query.word)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment