MVP, working sentry scraper
This commit is contained in:
@ -8,7 +8,7 @@ const authConfig = defineConfig({
|
||||
web: sessionGuard({
|
||||
useRememberMeTokens: false,
|
||||
provider: sessionUserProvider({
|
||||
model: () => import('#models/user')
|
||||
model: () => import('#models/user'),
|
||||
}),
|
||||
}),
|
||||
},
|
||||
@ -25,4 +25,4 @@ declare module '@adonisjs/auth/types' {
|
||||
}
|
||||
declare module '@adonisjs/core/types' {
|
||||
interface EventsList extends InferAuthEvents<Authenticators> {}
|
||||
}
|
||||
}
|
||||
|
@ -1,13 +1,18 @@
|
||||
import app from '@adonisjs/core/services/app'
|
||||
import { defineConfig } from '@adonisjs/lucid'
|
||||
import env from '#start/env'
|
||||
|
||||
const dbConfig = defineConfig({
|
||||
connection: 'sqlite',
|
||||
connection: 'postgres',
|
||||
connections: {
|
||||
sqlite: {
|
||||
client: 'better-sqlite3',
|
||||
postgres: {
|
||||
client: 'pg',
|
||||
connection: {
|
||||
filename: app.tmpPath('db.sqlite3')
|
||||
host: env.get('PG_HOST'),
|
||||
port: env.get('PG_PORT', 5432),
|
||||
user: env.get('PG_USER', 'postgres'),
|
||||
password: env.get('PG_PASSWORD', 'postgres'),
|
||||
database: env.get('PG_DB_NAME', 'postgres'),
|
||||
},
|
||||
useNullAsDefault: true,
|
||||
migrations: {
|
||||
@ -18,4 +23,4 @@ const dbConfig = defineConfig({
|
||||
},
|
||||
})
|
||||
|
||||
export default dbConfig
|
||||
export default dbConfig
|
||||
|
@ -19,12 +19,12 @@ const inertiaConfig = defineConfig({
|
||||
*/
|
||||
ssr: {
|
||||
enabled: true,
|
||||
entrypoint: 'inertia/app/ssr.ts'
|
||||
}
|
||||
entrypoint: 'inertia/app/ssr.ts',
|
||||
},
|
||||
})
|
||||
|
||||
export default inertiaConfig
|
||||
|
||||
declare module '@adonisjs/inertia/types' {
|
||||
export interface SharedProps extends InferSharedProps<typeof inertiaConfig> {}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user