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

Cannot use "export" feature of Nextjs with current ContentLayer config #426

Closed
ashiishme opened this issue Apr 19, 2023 · 1 comment
Closed
Milestone

Comments

@ashiishme
Copy link

Hi team,

I was trying to setup Contentlayer to manage my posts content using the experimental app directory which now supports the static export.

The below config is required to support the export:

const nextConfig = {
 ...
  output: "export",
}

And the Contentlayer uses redirect property to hook into the application.

As state by the Nextjs, that the redirect config is not required for the static export. The application is failing.

And, I cannot use the Contentlayer for static export.

Is there any workaround to this?

To reproduce

  • Create a new Nextjs application and setup Contentlayer
  • Setup the next.config.js file to use Contentlayer config
  • Set output:"export" in your config
  • Run the application
@schickling schickling added this to the 0.3.2 milestone Apr 24, 2023
@schickling
Copy link
Collaborator

This should be addressed with the 0.3.2 release. 🎉

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