Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating for v0.7, Routes/Templates #21

Open
petethompson opened this issue Sep 18, 2019 · 3 comments
Open

Updating for v0.7, Routes/Templates #21

petethompson opened this issue Sep 18, 2019 · 3 comments

Comments

@petethompson
Copy link
Member

@hjvedvik - I'm updating the wordpress starter to be compatible with gridsome 0.7, at least on my fork, for a future PR. The only deprecation notices I'm still getting are regarding using templates for routes in addCollection().

Since there's no gridsome.config.js in the starter, I'm not sure how or where to add the Templates configuration in this context. Can you point me in the right direction?

@hjvedvik
Copy link
Member

The current master branch should be compatible with 0.7 already. Here is the gridsome.config.js file with the templates config. And here is the starter running v0.7.3 on Netlify :)

@petethompson
Copy link
Member Author

Ah, I see. Thanks! How should I update source-wordpress, within my existing projects?

I ran npm install @gridsome/source-wordpress latest on my project and it's still using addContentType() with routes defined.

@petethompson
Copy link
Member Author

By the way, I was originally mistakenly referring to the routes in the @gridsome/source-wordpress package, assuming that was part of the wordpress starter. My bad!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants