nuxt / nuxt/image

Images aren't being retrieved from Strapi provider when using `nuxt generate`

Open
#1,371 10 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

documentation enhancement
Dominant language
TypeScript
Stars
1.5k
Forks
331
Avg merge
19h 52m
Merged PRs (30d)
9

Description

Hi,

I want to generate static images with Strapi as the provider. For this, I use the nuxt generate command, which normally retrieves the images from my provider and adds them locally.
However, my .output folder does not contain these images, and the image URLs are not updated in generated HTML.

Expected Behavior

Get images from Strapi added to assets/images folder, and images URLs updated to query images from assets/images folder and not Strapi

Current Behavior

Images are not retrieved from Strapi, and images urls are not updated

Steps to Reproduce

  1. Install & configure nuxt-image
  2. Run nuxt generate

Demo

https://stackblitz.com/edit/nuxt-image-ebldlk

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked StackBlitz reproduction and run nuxt generate after configuring the Strapi provider. Trace how the provider is handled during static generation and inspect the generated .output folder and HTML. Done means Strapi images are retrieved locally and generated URLs point to the local assets/images files.

Written by the indexing model from the issue text.

Assessment

Tech stack
nuxt, typescript
Domain
build-system, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.