Lemon Squeezy plugin for Gridsome.
npm install @lemonsqueezy/gridsome-lemonsqueezy
yarn add @lemonsqueezy/gridsome-lemonsqueezy
module.exports = {
plugins: [
{
use: '@lemonsqueezy/gridsome-lemonsqueezy',
options: {
apiKey: process.env.LSQ_API_KEY,
storeId: process.env.LSQ_API_STORE_ID,
}
}
]
}
Create a .env
file in the root of your Gridsome project and add LSQ_API_KEY
and LSQ_API_STORE_ID
variables.
- Type:
string
required
Your Lemon Squeezy API key.
- Type:
string
required
The ID of your Lemon Squeezy store.
- Type:
string
optional - Default:
'https://api.lemonsqueezy.com/v1/'
The URL to the Lemon Squeezy API (useful for local testing).
- Type:
boolean
optional - Default:
true
If the HTTP client should verify SSL certificates (useful for local testing).