7:11:16 PM: {
7:11:16 PM: from: ‘/posts/:slug’,
7:11:16 PM: to: ‘/server/pages/404.html’,
7:11:16 PM: status: 404,
7:11:16 PM: force: false
7:11:16 PM: },
Not sure why it is happening. On build time in my netlify logs. It routers all my dynamic routes ( retrieved with getStaticProps()) to a 404.
I can’t imagine this is the default behavior, I must be doing something wrong?
my ‘pages’ directory has a folder called “posts” and a file in that called “[slug].tsx” . Works perfectly on local.
It does say that it has created the pages:
7:42:17 PM: └ ● /posts/[slug] 526 B 81 kB
7:42:17 PM: ├ /posts/hydro-therapy-pool
7:42:17 PM: ├ /posts/independant-living-centre
7:42:17 PM: ├ /posts/paul
7:42:17 PM: └ [+4 more paths]
but I just cannot access them becuase it will give a 404 because of the redirect.