Giter Club home page Giter Club logo

Comments (7)

hacdias avatar hacdias commented on June 26, 2024 1

Released!

from ipfs-deploy.

hacdias avatar hacdias commented on June 26, 2024

Hello @ekumahost! Can you elaborate a bit more, please? I understand the issue, I just want to understand why is it an issue to find a better way to fix it.

When selecting a single file, like you do, do you expect it to be wrapped in a directory? Or do you expect that the domain will be pointing directly to the file itself? I will make a solution depending on those expectations.

from ipfs-deploy.

asbjornenge avatar asbjornenge commented on June 26, 2024

@hacdias I would expect it to point directly to the file 😅 This would be great! Currently the files are dependent upon one-another since the hash is for the whole directory, but would be super nice to be able to upload single files too 🙌

from ipfs-deploy.

hacdias avatar hacdias commented on June 26, 2024

@asbjornenge changing this is quite simple (please take a look at #226). The PR adds a warning, but lets it continue. Perhaps this should be a flag instead.

Could you just give me a use case so I can understand? IPFS Deploy is meant to be used to deploy websites. I've never opened a website whose root is just a file and no directory.

from ipfs-deploy.

asbjornenge avatar asbjornenge commented on June 26, 2024

Nice 🤩 Well, my current use-case is that I link to content on IPFS for different data - sometimes a JSON blob and sometimes an image etc. Sometimes the json contains links to other data on IPFS. In my mind it makes it clearer to point directly to these individual pieces of data instead of linking to <OLD_FOLDER_CID>/path/to/filename.json where these paths and/or other files might not be relevant anymore 😅 Makes it easier to grep for the data hash etc.

Has this new feature been released to npm yet?

Thanks 🙌

from ipfs-deploy.

hacdias avatar hacdias commented on June 26, 2024

I haven't yet. It seems you're using this tool to add any arbitrary file to IPFS. However, this tool is build with websites in mind and that's why I'm very curious about the use case.

from ipfs-deploy.

asbjornenge avatar asbjornenge commented on June 26, 2024

Yeah sure 😊 I'm using it for websites too, but arbitrary files also 👍 Another example would be say an image or js library shared between two websites. Both could reference the CID of the image or js lib without having to include them. If the fix is that easy, I don't really see a reason not to add it when clearly people want to use it 😅👍

from ipfs-deploy.

Related Issues (20)

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.