Redirect from router on SSG page give 404 on load but ok on reload
Answered
Estonian Hound posted this in #help-forum
Estonian HoundOP
Hello, I'm trying to build an ecommerce website with nextjs 14.0.4 and medusaJS (6.1.7), from the nextjs-medusajs template. When I click on a product, it should load an SSG page with a single product but it always give 404, if I reload the same page I get the good page.
Any idea or tips on what to look for ?
Edit: all ssg page have this behavior, ssr page are ok
Any idea or tips on what to look for ?
Edit: all ssg page have this behavior, ssr page are ok
Answered by Estonian Hound
The problem is
import { getTranslations } from 'next-intl/server'; I don't know why but I will find a solution or remove the translations1 Reply
Estonian HoundOP
The problem is
import { getTranslations } from 'next-intl/server'; I don't know why but I will find a solution or remove the translationsAnswer