Skip to content

Commit 537fc16

Browse files
committed
fix frontend checking backend types
1 parent f119b6d commit 537fc16

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

apps/backend/src/routes/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import usersRoute from "./users.js";
33
import { cors } from "hono/cors";
44
import {getEnv} from '../env.js'
55
const app = new Hono().basePath('/api/v1').use("*", cors({
6-
origin: (origin, c) => {
6+
origin: (_origin, c) => {
77
const {FRONTEND_URL} = getEnv(c)
88
return FRONTEND_URL
99
},

apps/frontend/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"include": ["**/*.ts", "**/*.tsx", "eslint.config.js", "prettier.config.js", "vite.config.js"],
3-
2+
"include": ["./src/**/*.ts", "./src/**/*.tsx", "eslint.config.js", "prettier.config.js", "vite.config.js"],
3+
44
"compilerOptions": {
55
"target": "ES2022",
66
"jsx": "react-jsx",

0 commit comments

Comments
 (0)