feat: migrate app to local Fastify and Postgres stack
Replace Supabase auth and search runtime with a local Fastify API, PostgreSQL/PostGIS schema, and local session handling. Scaffold the worker and deep-research foundations while keeping the existing research, dashboard, and map flows running on the new backend.
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
export const RUN_SEARCH_JOB = 'search.run';
|
||||
export const RUN_DEEP_RESEARCH_BATCH_JOB = 'deep-research.run';
|
||||
@@ -0,0 +1,12 @@
|
||||
import type { PgBoss } from 'pg-boss';
|
||||
import { RUN_DEEP_RESEARCH_BATCH_JOB, RUN_SEARCH_JOB } from './names.js';
|
||||
|
||||
export async function registerJobs(boss: PgBoss) {
|
||||
await boss.work(RUN_SEARCH_JOB, async ([job]) => {
|
||||
console.warn(`Job ${RUN_SEARCH_JOB} is queued but not implemented yet`, job?.id);
|
||||
});
|
||||
|
||||
await boss.work(RUN_DEEP_RESEARCH_BATCH_JOB, async ([job]) => {
|
||||
console.warn(`Job ${RUN_DEEP_RESEARCH_BATCH_JOB} is queued but not implemented yet`, job?.id);
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user