MVP, working sentry scraper

This commit is contained in:
Mike Conrad
2025-05-18 20:44:42 -04:00
parent a34b0899ce
commit 8ea49772df
29 changed files with 724 additions and 481 deletions

View File

@ -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> {}
}
}

View File

@ -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

View File

@ -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> {}
}
}