Decoupled Drupal 10 with Nextjs 14
Unanswered
Serengeti posted this in #help-forum
SerengetiOP
I am working on a decoupled Drupal 10 with Nextjs and was wondering if any here have had their hands into getting Drupal 10 with Nextjs 14 working seamlessly.
I am using the https://next-drupal.org
The errors I am getting are as follows
" ⨯ node_modules/next-drupal/dist/index.esm.js (2029:1) @ eval
⨯ Error: Failed to fetch JSON:API index at https://mysite.ddev.site/jsonapi - fetch failed
at async HomePage (./app/page.tsx:12:18)
digest: "2453633541"
2027 | });
2028 | }, function (error) {
2030 | }));
2031 | } catch (e) {
2032 | return Promise.reject(e);
GET / 500 in 394ms "
I am using the https://next-drupal.org
The errors I am getting are as follows
" ⨯ node_modules/next-drupal/dist/index.esm.js (2029:1) @ eval
⨯ Error: Failed to fetch JSON:API index at https://mysite.ddev.site/jsonapi - fetch failed
at async HomePage (./app/page.tsx:12:18)
digest: "2453633541"
2027 | });
2028 | }, function (error) {
2029 | _this29.throwError(new Error("Failed to fetch JSON:API index at " + url.toString() + " - " + error.message));| ^
2030 | }));
2031 | } catch (e) {
2032 | return Promise.reject(e);
GET / 500 in 394ms "
1 Reply
British Shorthair
Can you share your code which you are using to connecting with Drupal 10?