File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 2323 },
2424 "docSearch" : {
2525 "appId" : " Y1LB128RON" ,
26- "apiKey" : " bb601a1daab73e2dc66faf2b79564807" ,
2726 "indexName" : " spacy"
2827 },
2928 "binderUrl" : " explosion/spacy-io-binder" ,
Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ const nextConfig = withPWA(
3232 ignoreBuildErrors : true ,
3333 } ,
3434 images : { unoptimized : true } ,
35+ env : {
36+ DOCSEARCH_API_KEY : process . env . DOCSEARCH_API_KEY
37+ }
3538 } )
3639)
3740
Original file line number Diff line number Diff line change 1- import React , { useEffect , useState } from 'react'
1+ import React from 'react'
22import PropTypes from 'prop-types'
33import { DocSearch } from '@docsearch/react'
44import '@docsearch/css'
55
66import siteMetadata from '../../meta/site.json'
77
88export default function Search ( { placeholder = 'Search docs' } ) {
9- const { apiKey, indexName, appId } = siteMetadata . docSearch
9+ const apiKey = process . env . DOCSEARCH_API_KEY
10+ const { indexName, appId } = siteMetadata . docSearch
1011 return (
1112 < DocSearch appId = { appId } indexName = { indexName } apiKey = { apiKey } placeholder = { placeholder } />
1213 )
You can’t perform that action at this time.
0 commit comments