Git Product home page Git Product logo

Comments (3)

d1urno avatar d1urno commented on August 23, 2024

Have you included the base CMS address in the configuration?
I can't tell what's going on without having information. Can you upload a simple repository with your setup so I can reproduce the issue?

from nuxt-image-extractor.

pellens avatar pellens commented on August 23, 2024

An example url of an image is like such:

http://images.ctfassets.net/jsc9w1b7a9ly/3g7TKz3svRQ9o1VSrCLs2P/a9f1551f98c9756a6465041f365fe6b1/hero.jpeg?fit=fill&w=570&h=430

It's a Contenful Assets url... Tries some configurations, but I guess I'm stuck...
Is this info helpful?

Update:
Conteful is serving the images as such:
//images.ctfassets.net/jsc9w1b7a9ly/3g7TKz3svRQ9o1VSrCLs2P/a9f1551f98c9756a6465041f365fe6b1/hero.jpeg?fit=fill&w=570&h=430

So putting "http:" before the images, does indeed download the images. But it is still not replacing it in de dist-files... Any experience with that?

from nuxt-image-extractor.

d1urno avatar d1urno commented on August 23, 2024

I've tested that image with this config and it's working fine.

on nuxt.config.js

target: 'static',
modules: [
    [
      'nuxt-image-extractor',
      { baseUrl: 'http://images.ctfassets.net' }
    ]
],

Then you run the following commands nuxt build nuxt generate and nuxt start to check the output live server.
This generates a dist folder, wich contains the _images folder, and then serves it (on localhost:3000 by default).

from nuxt-image-extractor.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.