Related docs -> https://prismic.io/docs/core-concepts/themes
I just tried integrating a theme into my Private Repository prismic template. But when I decided to test it, I got the following error in my console:
kris-playground $ npx prismic-cli@latest theme \
--theme-url https://github.com/prismic-templates/prismic-templates \
--conf sm.json
? Name your prismic repository: https://pt-test-theme.prismic.io
project folder [pt-test-theme]:
Error: Could not resolve
https://github.com/prismic-templates/prismic-templates/archive/main.zip or
https://github.com/prismic-templates/prismic-templates/archive/master.zip
My prismic-theme.json
looks like this
{
"replaceRepositoryName": "prismic-templates-website"
}
And my sm.json file is:
{
"_latest": "0.3.5",
"apiEndpoint": "https://prismic-templates-website.prismic.io/api/v2",
"libraries": ["@/slices/essential_slices", "@/slices/unique_slices", "@/slices/content_slices"],
"localSliceSimulatorURL": "http://localhost:3000/slice-simulator/"
}
A note that I got this setup from @angeloashmore's work on the open source template - GitHub - prismicio-community/nextjs-starter-prismic-multi-page: Next.js and Prismic multi-page starter