你如何将子域重写为 nextjs 路由?

时间:2021-04-28 06:28:26

标签: reactjs url-rewriting next.js subdomain vercel

是否可以在 nextjs 重写中使用外部源? 例如,如果我想将 myshop.example.com 重写为 example.com/myshop。

我尝试将我的子域添加到重写中,但出现以下错误:

sourcedoes not start with /

如何解决?

0 个答案:

没有答案