vercel / next.js

The React Framework
https://nextjs.org
MIT License
126.83k stars 26.96k forks source link

Generating static pages even with no paths and fallback:false #15383

Closed arunoda closed 4 years ago

arunoda commented 4 years ago

Bug report

Describe the bug

I have a simple blog app:

I have configured the getStaticPaths of the post page with following:

export async function getStaticPaths () {
  return {
    paths: [],
    fallback: false
  }
}

Due to above, I expect to get 404 for blog posts. But they do give me correct static pages.

To Reproduce

Expected behavior

The blog post should give us 404.

Demo Video

https://www.youtube.com/watch?v=XqSqTwBa-N0

System information

balazsorban44 commented 2 years ago

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.