Skip to content

Commit cf3f384

Browse files
authored
Merge pull request #176 from CSE-Shaco/develop
Fix: Resolve 404 in core-attendance page and update tsconfig paths
2 parents b8191fa + 1c15761 commit cf3f384

File tree

2 files changed

+19
-16
lines changed

2 files changed

+19
-16
lines changed

src/app/core-attendance/page.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default function AttendancePage() {
3535
/** ===== API 래퍼 (인증 포함) ===== */
3636
const api = {
3737
// Dates
38-
getDates: async () => (await apiClient.get('/core-attendance/meetings/')).data.data, // { dates: [...] }
38+
getDates: async () => (await apiClient.get('/core-attendance/meetings')).data.data, // { dates: [...] }
3939
addDate: async (d) => (await apiClient.post('/core-attendance/meetings', {date: d})).data.data,
4040
deleteDate: async (d) => (await apiClient.delete(`/core-attendance/meetings/${d}`)).data.data,
4141

tsconfig.json

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
"compilerOptions": {
33
"target": "ES2017",
44
"lib": ["dom", "dom.iterable", "esnext"],
5-
"allowJs": true, // change later : false
6-
"checkJs": false, // change later : true
5+
"allowJs": true,
6+
"checkJs": false,
77
"skipLibCheck": true,
8-
"strict": false, // change later : true
9-
"noImplicitAny": false, // change later : true
10-
"strictNullChecks": false, // change later : true
8+
"strict": false,
9+
"noImplicitAny": false,
10+
"strictNullChecks": false,
1111
"noEmit": true,
1212
"esModuleInterop": true,
1313
"module": "esnext",
@@ -16,18 +16,21 @@
1616
"isolatedModules": true,
1717
"jsx": "preserve",
1818
"incremental": true,
19-
"plugins": [
20-
{
21-
"name": "next"
22-
}
23-
],
24-
"baseUrl": "src",
19+
"plugins": [{ "name": "next" }],
20+
21+
"baseUrl": ".",
2522
"paths": {
26-
"@/*": ["./*"],
27-
"@public/*": ["../public/*"]
23+
"@/*": ["src/*"],
24+
"@public/*": ["public/*"]
2825
}
2926
},
30-
// Note: To ignore specific Next.js AppDir export errors from .jsx, move invalid exports (e.g., columns) to separate modules.
31-
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
27+
"include": [
28+
"next-env.d.ts",
29+
"**/*.ts",
30+
"**/*.tsx",
31+
"**/*.js",
32+
"**/*.jsx",
33+
".next/types/**/*.ts"
34+
],
3235
"exclude": ["node_modules"]
3336
}

0 commit comments

Comments
 (0)