@agnostack/verifyd
Installation
yarn add @agnostack/verifyd
Quickstart - TODO
Inside of next.config.js
, add the following:
const { withShopify } = require('@agnostack/verifyd')
const manifestTemplate = require('./manifestTemplate.json')
const nextConfig = withShopify({
zendesk: { manifestTemplate },
})
Also, create an api route (pages/api/apps.js
) containing the following:
import getConfig from 'next/config'
import { withShopify } from '@agnostack/verifyd'
const { serverRuntimeConfig } = getConfig() ?? {}
export default withShopify(serverRuntimeConfig)
Alternate Option #1
Inside of next.config.js
, add the following:
const { withPlugins } = require('@agnostack/next-plugins')
const { withShopify } = require('@agnostack/verifyd')
const manifest = require('./manifest.json')
const nextPlugins = [{
[withShopify]: {
manifestTemplate: manifest,
},
}]
const nextConfig = withPlugins({
}, [nextPlugins])
Also, create an api route (pages/api/apps.js
) containing the following:
import getConfig from 'next/config'
import { withShopify } from '@agnostack/verifyd'
const { publicRuntimeConfig } = getConfig() ?? {}
export default withShopify(publicRuntimeConfig)
Contact Adam Grohs @ agnoStack for any questions.