build: configure absolute imports using @ alias

Configures TypeScript path aliases for cleaner and more maintainable imports.
This commit is contained in:
2025-09-18 11:33:06 -04:00
parent d35e37f4c2
commit 99848d1852
2 changed files with 9 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
import fetchKijijiItems from "./kijiji"; import fetchKijijiItems from "@/kijiji";
const PORT = process.env.PORT || 4005; const PORT = process.env.PORT || 4005;

View File

@@ -24,6 +24,12 @@
// Some stricter flags (disabled by default) // Some stricter flags (disabled by default)
"noUnusedLocals": false, "noUnusedLocals": false,
"noUnusedParameters": false, "noUnusedParameters": false,
"noPropertyAccessFromIndexSignature": false "noPropertyAccessFromIndexSignature": false,
"paths": {
"@/*": ["./src/*"]
} }
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
} }