Skip to content

Commit

Permalink
wip: search maybe works?
Browse files Browse the repository at this point in the history
  • Loading branch information
jlengstorf committed Jan 28, 2025
1 parent 314ecf2 commit e87e65e
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 4 deletions.
5 changes: 5 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
[[plugins]]
package = "./plugins/inject-env-vars"

[[plugins]]
package = "@algolia/netlify-plugin-crawler"
[plugins.inputs]
customDomain = "v2.learnwithjason.dev"
2 changes: 2 additions & 0 deletions public/_redirects
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@

# Old pages
/partners https://partners.lwj.dev

/what-s-new-in-redux-toolkit-2-0 /series/learn-with-jason/s7/what-s-new-in-redux-toolkit-2-0
2 changes: 1 addition & 1 deletion src/components/search/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export function Search() {
queries: [
{
indexName:
'netlify_c55763f8-efc8-4ed9-841a-186a011ed84b_main_all',
'netlify_38f74995-47a6-4a22-9cd6-6ccc0ba17d4e_main_all',
query,
params: {
hitsPerPage: 12,
Expand Down
2 changes: 1 addition & 1 deletion src/components/search/search-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import { liteClient } from 'algoliasearch/lite';

export const searchClient = liteClient(
'OVS2M3AMR9',
'b3d490351405331ec7f0584e6325c08e',
'60974a0aa0e70bfb087c0a2392f752b3',
);
2 changes: 1 addition & 1 deletion src/pages/series/[seriesSlug]/[collectionSlug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const seriesImage = createImageUrl(series.image.public_id, {
const sponsors = series.sponsors ?? [];
const url = new URL('https://lwj.dev');
const url = new URL('https://v2.learnwithjason.dev');
url.pathname = `/series/${series.slug}/${series.collection?.slug}`;
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const episodeNumber = (
const relatedEpisodes = episode.related_episodes ?? [];
const url = new URL('https://lwj.dev');
const url = new URL('https://v2.learnwithjason.dev');
url.pathname = `/series/${episode.series?.slug}/${episode.collection?.slug}/${episode.slug}`;
const thumb_w = 1280;
Expand Down

0 comments on commit e87e65e

Please sign in to comment.