Add Upstash Search to your website in minutes
.env
file:
app/components/search-bar.tsx
:
npx @upstash/search-crawler
in your command line and follow the CLI, you will be prompted to provide:
default
for convenience)https://upstash.com/docs
)default
index name,
don’t forget to update the line in the SearchComponent
where you provide the index name.app/page.tsx
:
http://localhost:3000
to test the application.
You can search through Upstash docs, and results will redirect you to the page you are looking for.