change pathnames and readme
This commit is contained in:
@@ -56,7 +56,7 @@ const SearchPage = ({data}) => {
|
||||
|
||||
export async function getServerSideProps(context) {
|
||||
// Fetch data from external API
|
||||
const res = await fetch(`${ENV_VAR}_search?q=${context.query.term}`)
|
||||
const res = await fetch(`${ENV_VAR}/_search?q=${context.query.term}`)
|
||||
const data = await res.json()
|
||||
|
||||
// Pass data to the page via props
|
||||
|
||||
Reference in New Issue
Block a user