Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Add Nuxt js support #800

Closed
skdishansachin opened this issue Dec 2, 2023 · 1 comment
Closed

Add Nuxt js support #800

skdishansachin opened this issue Dec 2, 2023 · 1 comment

Comments

@skdishansachin
Copy link

Hello,

Thank you for creating such a great project. I have enjoyed it a lot. I would like to suggest adding support for Nuxt.js to Keystatic. I am interested in helping with this and I would appreciate more information on how to get started. Please let me know your thoughts on this.

Thank you.

@simonswiss
Copy link
Collaborator

Hey!

Because Keystatic is built with React, I believe the only way to make Keystatic work with Nuxt.js is to have Keystatic in a subdirectory in your Nuxt.js project and run it as a separate Next.js app on a different port.

You can make it store the content at the root level of your project (where the Nuxt.js app lives) and then read the files from there.

The other thing that will be a bit complicated is to render content from the document field. Keystatic provides the DocumentRenderer written in React — and you could take inspiration to write a similar renderer in Vue.

The rest should work pretty well — if you're happy with that dual-nested-app setup.

Hope it helps!

@Thinkmill Thinkmill locked and limited conversation to collaborators Dec 8, 2023
@simonswiss simonswiss converted this issue into discussion #809 Dec 8, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants