question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When I use https://content.nuxtjs.org/ in my build. I get a 404 for the fetch. When I run npm run build and npm run start locally it works fine.

Any Idea why it might not work?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

8reactions
danielroecommented, Aug 27, 2020

In a serverless environment you can’t access your own API endpoints within the serverless function, which is what the content module relies on. (That is, for example, you can’t try an HTTP get request to an endpoint served by the function - because it won’t be accessible via http://localhost: 3000.) Short of it being rewritten, I can’t see this being compatible with serverless SSR.

3reactions
danielroecommented, Jan 10, 2021

Yes, this is now possible with https://github.com/nuxt/vercel-builder/pull/375

Read more comments on GitHub >

github_iconTop Results From Across the Web

Basic Features: Pages - Next.js
Next.js pages are React Components exported in a file in the pages directory. Learn how they work here.
Read more >
Creating a Markdown Blog Powered by Next.js in Under an Hour
Get started with Next.js with this step-by-step tutorial. ... Modify the content: array to look like this: Copy. 1content: [.
Read more >
Connect your content to Next.js - Sanity.io
Connect your content to Next.js. Assuming you've followed along with the previous steps of configuring schema and editing content, you should be all ......
Read more >
Nextjs Markdown Blog Setup - Austin Gatlin
js app on Vercel. Content for that website is written in markdown, which I pass through a processor built with unified ecosystem tools....
Read more >
Contentful and Next.js: Getting started
Build your first Next.js starter with Contentful, the composable content platform that extends the capabilities of the headless CMS even further.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found