Nuxt/prismic preview not working on production server

Hi Kristian,

I'm taking over this thread from Fares.

  1. Can you try, in your nuxt config file, to remove :
mode: 'universal',

and add:

target: "static",
  1. Next remove '@/modules/static', and '@/modules/crawler', from your modules. These aren't needed with the latest versions of Nuxt.

  2. Remove the modern config from the Prismic object , it causes issues as described here.

  3. Then at the end of the file add this fallback:

  generate: {
    fallback: "404.html" // Netlify reads a 404.html, Nuxt will load as an SPA
  }

Hopefully these changes should help.

Thanks.