Comments (3)
Netlify builds on deployment, and would therefore need access to the details in the client_secret in one way or another in order to successfully build.
To answer my own question for anyone that comes across this in the future. You can achieve this using .env files. See here: https://stackoverflow.com/questions/55459528/using-private-key-in-a-env-file
from gatsby-source-google-sheets.
client_secret should not be added to your hosting service, such as netlify. You should only need it when you build your Gatsby project
from gatsby-source-google-sheets.
Thanks @mckeever02, this was the first question I had when looking into using this plugin. Great solution, breaking the credentials into separate environment variables and reading them in appropriately during build time. 👏
from gatsby-source-google-sheets.
Related Issues (20)
- How do I query from the plugin? HOT 1
- Documentation updates HOT 9
- Changes to the g-sheet data is not reflected in graphiql query result HOT 1
- Warnings when installing version "^1.1.1" HOT 2
- error thrown during sourceNode lifecycle: "TypeError: value must be an array of bytes"
- Unable to fetch email field as graphql data from google sheet instead getting 0 as value
- Naming the first column of a sheet "id" breaks the plugin HOT 2
- Error with worksheets HOT 3
- environmental variables HOT 6
- Will Google Sheets API v4 break this plugin? HOT 1
- New to Gatsby, how can I access data? HOT 1
- Mixed field types HOT 2
- How does this perform with super large spreadsheets?
- value must be an array of bytes on uuid
- Upgrade to new Google API version before January 26, 2021
- What happens with bold/italic text? HOT 1
- Cannot read property 'createNode' of undefined (boundActionCreators.createNode) - GatsbyJS 3.2.1 HOT 7
- TypeError: Cannot read property 'worksheets' of undefined HOT 15
- Maintenance? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gatsby-source-google-sheets.