Revert "fix: be less precious about data formats"

This reverts commit 84e5e91894.
This commit is contained in:
Cory Dransfeldt 2024-10-18 18:12:01 -07:00
parent 84e5e91894
commit 7a2a2aa951
No known key found for this signature in database
3 changed files with 2 additions and 3 deletions

1
.gitignore vendored
View file

@ -2,7 +2,6 @@
_site
node_modules
.cache
.11ty-vite
# local dependencies
.env.local

View file

@ -110,7 +110,7 @@ window.addEventListener('load', () => {
const loadSearchIndex = async () => {
try {
const response = await fetch('/data/search.json')
const response = await fetch('/api/search')
const index = await response.json()
const resultsById = index.reduce((byId, result) => {
byId[result.id] = result

View file

@ -1,4 +1,4 @@
---
permalink: "/data/search.json"
permalink: "/api/search"
---
{{ search | json }}