Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/docs-new/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@types/node": "22.14.1",
"@types/react": "19.2.4",
"@types/react-dom": "^19.2.2",
"postcss": "^8.5.3",
"postcss": "^8.5.32",
"tailwindcss": "^4.1.4",
"tsconfig": "workspace:^",
"typescript": "^5.9.3"
Expand Down
3 changes: 3 additions & 0 deletions apps/docs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ pnpm-debug.log*

# macOS-specific files
.DS_Store

# generated types
.astro/
8 changes: 6 additions & 2 deletions apps/docs/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@ import react from "@astrojs/react";
export default defineConfig({
integrations: [
// Enable Preact to support Preact JSX components.
preact(),
preact({
include: ["**/RightSidebar/*.tsx", "**/Header/SidebarToggle.tsx"],
}),
// Enable React for the Algolia search component.
react(),
react({
include: ["**/Header/Search.tsx", "**/Header/LanguageSelect.tsx"],
}),
],
site: `https://docs.courselit.app`,
});
8 changes: 4 additions & 4 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
},
"dependencies": {
"@algolia/client-search": "^4.13.1",
"@astrojs/preact": "^1.1.1",
"@astrojs/react": "^1.1.4",
"@astrojs/preact": "^6.1.2",
"@astrojs/react": "^7.1.5",
"@docsearch/css": "^3.1.0",
"@docsearch/react": "^3.1.0",
"@types/node": "^18.0.0",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"astro": "^1.4.2",
"preact": "^10.7.3",
"astro": "^7.4.8",
"preact": "^10.29.8",
"react": "^18.1.0",
"react-dom": "^18.1.0"
}
Expand Down
18 changes: 9 additions & 9 deletions apps/queue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,23 @@
"@courselit/email-editor": "workspace:^",
"@courselit/orm-models": "workspace:^",
"@courselit/utils": "workspace:^",
"@opentelemetry/api-logs": "^0.204.0",
"@opentelemetry/exporter-logs-otlp-http": "^0.204.0",
"@opentelemetry/resources": "^2.1.0",
"@opentelemetry/sdk-logs": "^0.204.0",
"@opentelemetry/sdk-node": "^0.204.0",
"@opentelemetry/api-logs": "^0.223.1",
"@opentelemetry/exporter-logs-otlp-http": "^0.223.1",
"@opentelemetry/resources": "^2.12.1",
"@opentelemetry/sdk-logs": "^0.223.1",
"@opentelemetry/sdk-node": "^0.223.1",
"@types/jsdom": "^21.1.7",
"bullmq": "^4.14.0",
"express": "^4.18.2",
"express": "^4.22.3",
"jsdom": "^26.1.0",
"liquidjs": "10.26.0",
"liquidjs": "^10.30.1",
"mongodb": "^6.21.0",
"mongoose": "^8.22.1",
"nodemailer": "^6.9.2",
"nodemailer": "^10.4.0",
"posthog-node": "^5.9.1",
"pino": "^8.14.1",
"pino-mongodb": "^4.3.0",
"zod": "^3.22.4"
"zod": "^4.6.7"
},
"devDependencies": {
"@shelf/jest-mongodb": "^5.2.2",
Expand Down
2 changes: 1 addition & 1 deletion apps/queue/src/domain/model/mail-job.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const MailJob = z.object({
subject: z.string(),
body: z.string(),
domainId: z.string(),
headers: z.record(z.string()).optional(),
headers: z.record(z.string(), z.string()).optional(),
});

export type MailJob = z.infer<typeof MailJob>;
4 changes: 2 additions & 2 deletions apps/queue/src/job/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const DispatchNotificationJob = z.object({
),
entityId: z.string(),
entityTargetId: z.string().optional(),
metadata: z.record(z.any()).optional(),
metadata: z.record(z.string(), z.any()).optional(),
});

const NotificationJob = z.object({
Expand All @@ -73,7 +73,7 @@ const NotificationJob = z.object({
),
entityId: z.string(),
entityTargetId: z.string().optional(),
metadata: z.record(z.any()).optional(),
metadata: z.record(z.string(), z.any()).optional(),
});

router.post(
Expand Down
16 changes: 9 additions & 7 deletions apps/queue/src/observability/logs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,16 @@ export async function initPosthogLogs() {
"service.name": SERVICE_NAME,
"deployment.environment": process.env.DEPLOY_ENV || "unknown",
}),
logRecordProcessor: new BatchLogRecordProcessor(
new OTLPLogExporter({
url,
headers: {
Authorization: `Bearer ${token}`,
},
logRecordProcessors: [
new BatchLogRecordProcessor({
exporter: new OTLPLogExporter({
url,
headers: {
Authorization: `Bearer ${token}`,
},
}),
}),
),
],
});

await Promise.resolve(sdk.start());
Expand Down
Loading
Loading