prismicio-community / nuxt-starter-prismic-multi-page

Multi-page project with Nuxt & Prismic
https://nuxt-starter-prismic-multi-page.vercel.app
Apache License 2.0
6 stars 9 forks source link

custom_types are not automatically populated into prismic.io #5

Closed JulioJu closed 3 years ago

JulioJu commented 3 years ago

@phillysnow

With prismic-cli v4 or v3 when we run

$ prismic theme --theme-url https://github.com/prismicio-community/nuxt-sm-tutorial-series --conf sm.json

Nothing is populated into prismic.io. No custom_types or no document. Probably it's normal because there is no such folder.

image

======

It could be cool to have at least the same thing than with :

$ prismic theme --theme-url https://github.com/prismicio/nuxtjs-website --conf nuxt.config.js

Into https://github.com/prismicio/nuxtjs-website/tree/a2eae05415a62161db7169bc43501030af3f9d43 we could see a folder custom_types and documents than populate custom_types and document into prismic.io.

image

phillysnow commented 3 years ago

So this is expected behaviour when it comes to Slice Machine sample projects, this is why in the install guide we have step

  1. Push your Shared Slices to Prismic

https://prismic.io/docs/technologies/run-a-pre-configured-project-nuxtjs

There are plans to prepopulate content for Slice Machine themes in the future, but it's not being worked on at the minute.

JulioJu commented 3 years ago

Ok thanks @phillysnow for your answer :-)

phillysnow commented 3 years ago

No worries, although you're right, the custom types should be pushed initially, we're looking into this.

JulioJu commented 3 years ago

Ok thanks !

phillysnow commented 3 years ago

This should be good now, just upgrade the CLI to 4.0.2

JulioJu commented 3 years ago

It works, thanks !