Fix configs

This commit is contained in:
Arthur Belleville 2025-09-23 22:14:02 +02:00
parent af247845a4
commit 0b1f1158dd
No known key found for this signature in database
8 changed files with 17 additions and 24 deletions

View file

@ -1,4 +1,4 @@
import type { EventAndTablo } from "@/types.ts";
import type { EventAndTablo } from "./types.ts";
import { PutObjectCommand, S3Client } from "@aws-sdk/client-s3";
import type { SupabaseClient } from "@supabase/supabase-js";

View file

@ -1,10 +1,10 @@
import { Hono } from "hono";
import { serve } from "@hono/node-server";
import { logger } from "hono/logger";
import { mainRouter } from "@/routers.ts";
import { mainRouter } from "./routers.js";
import { cors } from "hono/cors";
import { config } from "@/config.ts";
import { config } from "./config.js";
import { run } from "graphile-worker";
import path from "path";
import { fileURLToPath } from "url";

View file

@ -3,7 +3,7 @@ import { createClient, type User } from "@supabase/supabase-js";
import type { Context, Next } from "hono";
import nodemailer from "nodemailer";
import { StreamChat } from "stream-chat";
import { config } from "@/config.ts";
import { config } from "./config.js";
// Create authentication middleware
export const authMiddleware = async (c: Context, next: Next) => {

View file

@ -1,7 +1,7 @@
import { Hono } from "hono";
import { userRouter } from "@/user.ts";
import { supabaseMiddleware } from "@/middleware.ts";
import { tabloRouter } from "@/tablo.ts";
import { userRouter } from "./user.js";
import { supabaseMiddleware } from "./middleware.js";
import { tabloRouter } from "./tablo.js";
export const mainRouter = new Hono<{
Bindings: {

View file

@ -4,24 +4,24 @@ import {
emailMiddleware,
r2Middleware,
streamChatMiddleware,
} from "@/middleware.ts";
} from "./middleware.js";
import {
PostgrestError,
type SupabaseClient,
type User,
} from "@supabase/supabase-js";
import type { Transporter } from "nodemailer";
import { generateToken } from "@/token.ts";
import { config } from "@/config.ts";
import type { Tables } from "@/database.types.ts";
import { generateToken } from "./token.js";
import { config } from "./config.js";
import type { Tables } from "./database.types.ts";
import type { StreamChat } from "stream-chat";
import type {
TabloInsert,
EventInsertInTablo,
EventAndTablo,
} from "@/types.ts";
} from "./types.ts";
import { PutObjectCommand, type S3Client } from "@aws-sdk/client-s3";
import { generateICSFromEvents, writeCalendarFileToR2 } from "@/helpers.ts";
import { generateICSFromEvents, writeCalendarFileToR2 } from "./helpers.js";
export const tabloRouter = new Hono<{
Variables: {

View file

@ -3,7 +3,7 @@ import type {
Tables,
TablesInsert,
TablesUpdate,
} from "@/database.types.ts";
} from "./database.types.ts";
export type Tablo = Database["public"]["Tables"]["tablos"];
export type TabloInsert = Tablo["Insert"];

View file

@ -1,9 +1,9 @@
import { Hono } from "hono";
import { authMiddleware, streamChatMiddleware } from "@/middleware.ts";
import { authMiddleware, streamChatMiddleware } from "./middleware.js";
import type { SupabaseClient, User } from "@supabase/supabase-js";
import { StreamChat } from "stream-chat";
import type { Transporter } from "nodemailer";
import type { Tables } from "@/database.types.ts";
import type { Tables } from "./database.types.ts";
export const userRouter = new Hono<{
Variables: {

View file

@ -8,14 +8,7 @@
"types": ["node"],
"jsx": "react-jsx",
"jsxImportSource": "hono/jsx",
"outDir": "./dist",
"declaration": true,
"emitDeclarationOnly": true,
"allowImportingTsExtensions": true,
"baseUrl": "./",
"paths": {
"@/*": ["./src/*"]
}
"outDir": "./dist"
},
"exclude": ["node_modules"]
}