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

How to integrate with ContentJS #1

Open
fpoirier1 opened this issue Jan 18, 2019 · 4 comments
Open

How to integrate with ContentJS #1

fpoirier1 opened this issue Jan 18, 2019 · 4 comments

Comments

@fpoirier1
Copy link

Hello,

This is not a bug report but a question. I would like to know how do you integrate contenta_react_next with contentajs ?

I know there is a way to add customization to NextJS server (https://nextjs.org/docs/#custom-server-and-routing) but I am curious what your point of view on this.

Cheers

@spleshka
Copy link
Member

Hi @fpoirier1, right now we don't tbh - it's connected just with the backend system. We'd like to hear more on how this can be done though :)

@fpoirier1
Copy link
Author

Okay so you were able to build a complete decoupled project with NextJs without using contentajs ? Sorry for asking those silly questions, it is my first contenta project.

@spleshka
Copy link
Member

There are no silly questions in our industry, so no worries! Answering your question - yes, you can make requests straight to the backend without having to set up any additional proxy in-between (contentajs is sort of proxy).

You can look at the live project running on this codebase here https://contenta-react-next.now.sh and using network inspector check out where the requests go - you'll realize that they just go to the URL with Drupal installed with ContentaCMS profile.

@spleshka
Copy link
Member

A side note: if you're looking to play a bit with next.js / contentacms, this repo might be a good start for you https://github.com/systemseed/drupal_reactjs_boilerplate.

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