Skip to content

Commit

Permalink
feat: add nuxt-elasticsearch module and search api
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin3go committed Jan 17, 2024
1 parent 82b8a66 commit d72615b
Show file tree
Hide file tree
Showing 5 changed files with 6,010 additions and 0 deletions.
12 changes: 12 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
modules: [
'nuxt-elasticsearch'
],
nuxtElasticsearch: {
clientOpts: {
node: process.env.ES_URL,
auth: {
username: process.env.ES_AUTH_USERNAME || '',
password: process.env.ES_AUTH_PASSWORD || '',
}
}
},
devtools: { enabled: true }
})
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
},
"devDependencies": {
"nuxt": "^3.9.1",
"nuxt-elasticsearch": "^1.0.2",
"vue": "^3.4.10",
"vue-router": "^4.2.5"
}
Expand Down
Loading

0 comments on commit d72615b

Please sign in to comment.