Coder Social home page Coder Social logo

danieloliver / gatsby-source-azure-storage Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 4.0 60 KB

Source plugin for pulling data into Gatsby from Azure Storage.

Home Page: https://www.npmjs.com/package/gatsby-source-azure-storage

License: MIT License

JavaScript 100.00%
azure-storage azure-table-storage gatsby gatsby-source

gatsby-source-azure-storage's Introduction

Hi there ๐Ÿ‘‹

gatsby-source-azure-storage's People

Contributors

danieloliver avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gatsby-source-azure-storage's Issues

Error when using together 'gatsby-source-filesystem'

How would I use this plugin with 'gatsby-source-filesystem' as both want to use node type File?

Error I get if I include both plugins is:

The plugin "gatsby-source-filesystem" created a node of a type owned by another plugin.
The node type "File" is owned by "gatsby-source-azure-storage"

So basically plugins would look something like:

{
      resolve: `gatsby-source-azure-storage`,
      options: {
        tables: [],
        containers: [
          {
            name: `json`,
            // If defined, downloads the blobs in this container to this folder.
            localFolder: `source-json`
          }
        ],
        // If defined, downloads the blobs in all containers above (unless overriden on the container) to this folder.
        // containerLocalFolder: 'test'
      }
    },
    {
      resolve: `gatsby-source-filesystem`,
      options: {
        name: `images`,
        path: `${__dirname}/src/images`,
      },
    },

I can work around it by placing also images to the Azure Storage Account and not using gatsby-source-filesystem at all. That might be the way to do it and I'm just trying to use Gatsby wrong...

Transforming JSON files from Azure Storage Account

When attempting to transform JSON files located in Azure Storage Account, I get error:

"gatsby-transformer-json" threw an error while running the onCreateNode lifecycle:

Could not find function loadNodeContent for plugin gatsby-source-azure-storage

Is the azure-storage plugin not implementing loadNodeContent function? Any pointers where I should insert it?

Documentation - Updates needed to env variables

Great plugin, but updates are required to your readme as the environment variables are incorrect.

They should be the following:

  • AZURE_STORAGE_ACCOUNT
  • AZURE_STORAGE_ACCESS_KEY
  • AZURE_STORAGE_CONNECTION_STRING

Credentials must be provided when creating a service client.

"gatsby-source-azure-storage" threw an error while running the sourceNodes lifecycle

I have my environment vars set properly?

.env.production & .env.development in project root they properly console.log(process.env.AZURE_STORAGE_ACCOUNT)
AZURE_STORAGE_ACCOUNT=*******************
AZURE_STORAGE_ACCESS_KEY=*************************
AZURE_STORAGE_CONNECTION_STRING=**************************

How do I provide credentials then?

ERROR:

204 | delete configOptions.plugins
205 |

206 | let tableService = azure.createTableService()
| ^
207 | let blobService = azure.createBlobService()
208 |
209 | let hasTables = configOptions.tables != null && configOptions.tables.length > 0

File: node_modules/gatsby-source-azure-storage/gatsby-node.js:206:28

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.