File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed
Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -160,15 +160,18 @@ const config = defineConfig({
160160 ] ,
161161
162162 search : {
163- provider : 'algolia ' ,
163+ provider : 'local ' ,
164164 options : {
165- appId : '7H67QR5P0A' ,
166- apiKey : '208bb9c14574939326032b937431014b' ,
167- indexName : 'vitejs' ,
168- searchParameters : {
169- facetFilters : [ 'tags:en' ] ,
165+ miniSearch : {
166+ searchOptions : {
167+ boostDocument ( page ) {
168+ if ( page . startsWith ( '/guide/' ) ) return 2 // Prefer guide pages
169+ if ( page . startsWith ( '/config/' ) ) return 1.5 // Then config pages
170+ if ( page . startsWith ( '/blog/' ) ) return 0 // Do not index blog posts
171+ return 1
172+ } ,
173+ } ,
170174 } ,
171- insights : true ,
172175 } ,
173176 } ,
174177
Original file line number Diff line number Diff line change 1- # temporary, we'll flip this around some day
21https://vitejs.dev/* https://vite.dev/:splat 301 !
32
43/guide/api-vite-runtime /guide/api-environment 301
You can’t perform that action at this time.
0 commit comments