我想为我的strapi/next.js项目使用一个启动程序应用程序,但由于master分支中的最新版本有一个错误,我想使用以前提交的启动程序。
我认为从GitHub下载以前的版本并从我的本地机器上安装以前的启动程序是有意义的,但我不确定如何做到这一点。也许这不是最好的方法。
从过去的提交中安装启动器的最佳方式是什么?
根据Strapi Corporate Template Readme文件,您可以通过提供相应的URL来安装所需的模板。
使用纱线
yarn创建strapi应用程序我的应用程序名称--模板https://github.com/strapi/strapi-template-corporate
或使用NPM
npx创建strapi应用程序我的应用程序名称--模板https://github.com/strapi/strapi-template-corporate
因此,您可以尝试为其提供所需提交的URL,它应该可以正常工作。
使用纱线
yarn create strapi-app strapi-starter-templ --template https://github.com/strapi/strapi-starter-next-corporate/tree/0bb57fd39acce7b9ae86900688f0f420f069b7d8/starter
使用Npm
npx create-strapi-app my-app-name --template https://github.com/strapi/strapi-starter-next-corporate/tree/0bb57fd39acce7b9ae86900688f0f420f069b7d8/starter