Soham Waghmare commited on
Commit
27591d1
·
1 Parent(s): 2e7100e

feat: update CORS settings and enhance TypeScript configuration

Browse files
backend/app.py CHANGED
@@ -20,6 +20,8 @@ logger = logging.getLogger(__name__)
20
  app = FastAPI()
21
  CORS_ALLOWED_ORIGINS = [
22
  "*",
 
 
23
  "https://knowledge-net.vercel.app",
24
  ]
25
  app.add_middleware(
 
20
  app = FastAPI()
21
  CORS_ALLOWED_ORIGINS = [
22
  "*",
23
+ "http://localhost:3000",
24
+ "http://127.0.0.1:3000",
25
  "https://knowledge-net.vercel.app",
26
  ]
27
  app.add_middleware(
frontend/bun.lock CHANGED
The diff for this file is too large to render. See raw diff
 
frontend/package.json CHANGED
@@ -3,7 +3,7 @@
3
  "version": "0.1.0",
4
  "private": true,
5
  "scripts": {
6
- "dev": "next dev",
7
  "build": "next build",
8
  "start": "next start",
9
  "lint": "next lint"
@@ -22,27 +22,28 @@
22
  "@radix-ui/react-tooltip": "^1.1.8",
23
  "class-variance-authority": "^0.7.1",
24
  "clsx": "^2.1.1",
 
25
  "lucide-react": "^0.479.0",
26
- "next": "14.2.25",
27
- "next-themes": "^0.4.5",
28
- "react": "^18",
29
- "react-dom": "^18",
30
  "react-markdown": "^10.1.0",
31
  "react-resizable-panels": "^2.1.7",
32
  "remark-gfm": "^4.0.1",
33
- "shadcn": "^2.4.0-canary.12",
34
  "socket.io-client": "^4.8.1",
35
  "tailwind-merge": "^3.0.2",
36
  "tailwindcss-animate": "^1.0.7",
37
  "uuid": "^11.1.0"
38
  },
39
  "devDependencies": {
40
- "@types/node": "^20",
41
- "@types/react": "^18",
42
- "@types/react-dom": "^18",
43
  "@types/uuid": "^10.0.0",
44
- "postcss": "^8",
45
- "tailwindcss": "^3.4.1",
46
- "typescript": "^5"
47
  }
48
  }
 
3
  "version": "0.1.0",
4
  "private": true,
5
  "scripts": {
6
+ "dev": "next dev --turbopack",
7
  "build": "next build",
8
  "start": "next start",
9
  "lint": "next lint"
 
22
  "@radix-ui/react-tooltip": "^1.1.8",
23
  "class-variance-authority": "^0.7.1",
24
  "clsx": "^2.1.1",
25
+ "eslint-config-next": "^15.2.4",
26
  "lucide-react": "^0.479.0",
27
+ "next": "^15.2.4",
28
+ "next-themes": "^0.4.6",
29
+ "react": "^19.1.0",
30
+ "react-dom": "^19.1.0",
31
  "react-markdown": "^10.1.0",
32
  "react-resizable-panels": "^2.1.7",
33
  "remark-gfm": "^4.0.1",
34
+ "shadcn": "^2.4.0-canary.19",
35
  "socket.io-client": "^4.8.1",
36
  "tailwind-merge": "^3.0.2",
37
  "tailwindcss-animate": "^1.0.7",
38
  "uuid": "^11.1.0"
39
  },
40
  "devDependencies": {
41
+ "@types/node": "^20.17.28",
42
+ "@types/react": "^18.3.20",
43
+ "@types/react-dom": "^18.3.5",
44
  "@types/uuid": "^10.0.0",
45
+ "postcss": "^8.5.3",
46
+ "tailwindcss": "^3.4.17",
47
+ "typescript": "^5.8.2"
48
  }
49
  }
frontend/tsconfig.json CHANGED
@@ -1,6 +1,10 @@
1
  {
2
  "compilerOptions": {
3
- "lib": ["dom", "dom.iterable", "esnext"],
 
 
 
 
4
  "allowJs": true,
5
  "skipLibCheck": true,
6
  "strict": true,
@@ -18,9 +22,19 @@
18
  }
19
  ],
20
  "paths": {
21
- "@/*": ["./src/*"]
22
- }
 
 
 
23
  },
24
- "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
25
- "exclude": ["node_modules"]
 
 
 
 
 
 
 
26
  }
 
1
  {
2
  "compilerOptions": {
3
+ "lib": [
4
+ "dom",
5
+ "dom.iterable",
6
+ "esnext"
7
+ ],
8
  "allowJs": true,
9
  "skipLibCheck": true,
10
  "strict": true,
 
22
  }
23
  ],
24
  "paths": {
25
+ "@/*": [
26
+ "./src/*"
27
+ ]
28
+ },
29
+ "target": "ES2017"
30
  },
31
+ "include": [
32
+ "next-env.d.ts",
33
+ "**/*.ts",
34
+ "**/*.tsx",
35
+ ".next/types/**/*.ts"
36
+ ],
37
+ "exclude": [
38
+ "node_modules"
39
+ ]
40
  }