image icon indicating copy to clipboard operation
image copied to clipboard

No generated images with SSR build and Vercel

Open ExitableServices opened this issue 4 years ago • 1 comments

The module works locally perfect:

  • Page transitions working fine
  • Images are generated with the path: http://localhost:8000/_ipx/w_1920,q_90/images/slider/test.jpg for example.

But on Vercel SSR won't generate the correct size images.

<source type="image/webp" srcset="https://server.loremipsum.nl/sites/default/files/styles/overview/public/blog/2021-08/header%20ss.png?itok=_mioy-y1 640w, https://server.loremipsum.nl/sites/default/files/styles/blog_overview/public/blog/2021-08/header%20ss.png?itok=_mioy-y1 384w, https://server.loremipsum.nl/sites/default/files/styles/overview/public/blog/2021-08/header%20ss.png?itok=_mioy-y1 512w" sizes="(max-width: 640px) 100vw, (max-width: 768px) 50vw, 50vw">

The page transitions also don't work.

Build commando: npm run build

Local settings:

nuxt.config.js export default { ssr: true, modules: [ '@nuxt/image', ], image: { domains: ['server.loremipsum.nl'], } }

package.json "@nuxt/image": "0.4.1"

vercel.json { "builds": [ { "src": "nuxt.config.js", "use": "@nuxtjs/vercel-builder", "config": {} } ] }

ExitableServices avatar Oct 16 '21 11:10 ExitableServices

Having the same issue, vercel provider not working either

SushyDev avatar Jun 11 '22 13:06 SushyDev