chore: adopt biome for linting and formatting, wire turbo env, add ci workflow
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { cors } from 'hono/cors'
|
||||
import { Hono } from 'hono'
|
||||
import { cors } from 'hono/cors'
|
||||
import { requestId } from 'hono/request-id'
|
||||
import { secureHeaders } from 'hono/secure-headers'
|
||||
|
||||
@@ -9,7 +9,7 @@ import { errorHandler, notFoundHandler } from '@/lib/problem-details'
|
||||
import { healthModule } from '@/modules/health'
|
||||
import type { AppEnv } from '@/types'
|
||||
|
||||
const allowedOrigins = (process.env.CORS_ORIGIN ?? 'http://localhost:5173')
|
||||
const allowedOrigins = (process.env.CORS_ORIGIN ?? 'http://localhost:7153')
|
||||
.split(',')
|
||||
.map((origin) => origin.trim())
|
||||
.filter(Boolean)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { createApp } from '@/app'
|
||||
import { logger } from '@/lib/logger'
|
||||
|
||||
const port = Number(process.env.PORT ?? 3000)
|
||||
const port = Number(process.env.PORT ?? 4100)
|
||||
|
||||
const app = createApp()
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { problem, problemTypes, type ProblemDetails } from '@superlist/shared'
|
||||
import { type ProblemDetails, problem, problemTypes } from '@superlist/shared'
|
||||
import type { Context } from 'hono'
|
||||
import { HTTPException } from 'hono/http-exception'
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { problem, type ProblemDetails, type Result } from '@superlist/shared'
|
||||
import { type ProblemDetails, problem, type Result } from '@superlist/shared'
|
||||
import type { Context } from 'hono'
|
||||
|
||||
import { problemResponse } from '@/lib/problem-details'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { zValidator, type Hook } from '@hono/zod-validator'
|
||||
import { problems, type FieldErrors } from '@superlist/shared'
|
||||
import { type Hook, zValidator } from '@hono/zod-validator'
|
||||
import { type FieldErrors, problems } from '@superlist/shared'
|
||||
import type { Context, Env, ValidationTargets } from 'hono'
|
||||
import type { ZodError, ZodType } from 'zod'
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Ok, type Result, type ProblemDetails } from '@superlist/shared'
|
||||
import { Ok, type ProblemDetails, type Result } from '@superlist/shared'
|
||||
|
||||
export type HealthStatus = {
|
||||
status: 'ok'
|
||||
|
||||
Reference in New Issue
Block a user