Git Product home page Git Product logo

Comments (9)

dalisoft avatar dalisoft commented on June 5, 2024

Hi @dnohr

I'm uploaded new fixed and better documented version at here

from middlewares.

dalisoft avatar dalisoft commented on June 5, 2024

@dnohr

If new middlewares static fixes your issue, please close issue

from middlewares.

dalisoft avatar dalisoft commented on June 5, 2024

No answers, issue was fixed in my env, so i can close the Issue

from middlewares.

dalisoft avatar dalisoft commented on June 5, 2024

@dnohr Please comment here

from middlewares.

dnohr avatar dnohr commented on June 5, 2024

Hi @dalisoft ,

Sorry for the late reply. I just reinstalled the libraries now to verify it, and with a fresh install, I'm still getting the same or similar issue.

Tested with the following code:

const nanoexpress = require('nanoexpress-pro/cjs');
const staticServe = require('nanoexpress-pro/cjs/static');
const app = nanoexpress();
app.use(staticServe(__dirname + '/public'));
app.get('/', (req, res) => { return res.send({ status: 'ok' }); });
app.listen(6006);

Try to put two different images in "public/" and a different one in "public/img", but with the same name. Seems like there can only be one static file with the same name.

Thanks.

from middlewares.

dalisoft avatar dalisoft commented on June 5, 2024

I checked this bug already and lot of times, but it’s fixed for me.
Can you please create minimal reproducible repo for test?
Thanks

from middlewares.

dnohr avatar dnohr commented on June 5, 2024

I'm not sure how to do it fast, but I tested on macOS with just "nanoexpress-pro" installed and two photos in the static folder + in another folder. Thanks!

from middlewares.

dalisoft avatar dalisoft commented on June 5, 2024

Now documentation page related to static-serve was removed as documentation lives on this repository for each package

from middlewares.

dalisoft avatar dalisoft commented on June 5, 2024

I sure you are trying to make it work with older package. Please check again

from middlewares.

Related Issues (15)

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.