File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @nuxtjs/algolia" ,
3
- "version" : " 1.1.2 " ,
3
+ "version" : " 1.1.3 " ,
4
4
"description" : " Algolia module for Nuxt" ,
5
5
"repository" : {
6
6
"type" : " git" ,
Original file line number Diff line number Diff line change @@ -121,9 +121,9 @@ export default defineNuxtModule<ModuleOptions>({
121
121
} )
122
122
}
123
123
124
- if ( nuxt ?. options ?. runtimeConfig ?. public ?. algolia ) {
125
- // Nuxt 3
126
- nuxt . options . runtimeConfig . public . algolia = defu ( nuxt . options . runtimeConfig . algolia , {
124
+ if ( ! nuxt ?. options ?. runtimeConfig ?. public ?. algolia ) {
125
+ // Nuxt 2
126
+ nuxt . options . publicRuntimeConfig . algolia = defu ( nuxt . options . publicRuntimeConfig . algolia , {
127
127
apiKey : options . apiKey ,
128
128
applicationId : options . applicationId ,
129
129
lite : options . lite ,
@@ -133,8 +133,8 @@ export default defineNuxtModule<ModuleOptions>({
133
133
globalIndex : options . globalIndex
134
134
} ) ;
135
135
} else {
136
- // Nuxt 2 (Edge)
137
- nuxt . options . publicRuntimeConfig . algolia = defu ( nuxt . options . publicRuntimeConfig . algolia , {
136
+ // Nuxt 3
137
+ nuxt . options . runtimeConfig . public . algolia = defu ( nuxt . options . runtimeConfig . algolia , {
138
138
apiKey : options . apiKey ,
139
139
applicationId : options . applicationId ,
140
140
lite : options . lite ,
You can’t perform that action at this time.
0 commit comments