danieloliver / gatsby-source-azure-storage Goto Github PK
View Code? Open in Web Editor NEWSource plugin for pulling data into Gatsby from Azure Storage.
Home Page: https://www.npmjs.com/package/gatsby-source-azure-storage
License: MIT License
Source plugin for pulling data into Gatsby from Azure Storage.
Home Page: https://www.npmjs.com/package/gatsby-source-azure-storage
License: MIT License
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...
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?
Great plugin, but updates are required to your readme as the environment variables are incorrect.
They should be the following:
Noticed your cool plugin today! Thought you might be interested in the createRemoteFileNode
helper function which does a lot of nice things for you around downloading remote files and such.
https://www.gatsbyjs.org/packages/gatsby-source-filesystem/?=source-filesyste#createremotefilenode
"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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.