简体   繁体   中英

How to load Next.js page from git submodule?

Some of my pages / components are used in multiple Next.js project. I would keep them in a separate git submodule. How can I "import" them?

Ie if those routes are so called "admin" routes, components, shall I import under a dedicated route ie /[lang]/admin and then I can avoid mingle with other only "locally" existing pages?

Or do you know other best practice?

您可以定义重写 重写以将路径映射到不同的目标路径或多区域以合并多个应用程序。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM