fix: update OpenSearch host configuration and improve code consistency across controllers and components
This commit is contained in:
parent
9c0221ce27
commit
6c75efbc28
7 changed files with 368 additions and 141 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import { defineConfig } from '@adonisjs/inertia';
|
||||
import type { HttpContext } from '@adonisjs/core/http';
|
||||
import type { InferSharedProps } from '@adonisjs/inertia/types'
|
||||
import type { InferSharedProps } from '@adonisjs/inertia/types';
|
||||
import env from '#start/env';
|
||||
|
||||
const inertiaConfig = defineConfig({
|
||||
/**
|
||||
|
|
@ -21,6 +22,8 @@ const inertiaConfig = defineConfig({
|
|||
return ctx.session?.flashMessages.get('user_id');
|
||||
},
|
||||
|
||||
opensearch_host: env.get('OPENSEARCH_HOST'),
|
||||
|
||||
flash: (ctx) => {
|
||||
return {
|
||||
message: ctx.session?.flashMessages.get('message'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue