Skip to content

Commit

Permalink
Update path alias
Browse files Browse the repository at this point in the history
  • Loading branch information
johnny-t06 committed Oct 11, 2024
1 parent 87af031 commit 015a82c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import ExampleButton from "@/components/ExampleButton";
import ExampleButton from "@components/ExampleButton";

export default function Home() {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/components/ExampleButton.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { addUser } from "@/app/api/user/route.client";
import { addUser } from "@api/user/route.client";
import { Icon } from "@iconify/react/dist/iconify.js";

interface ExampleButtonProps {
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
}
],
"paths": {
"@/*": ["./src/*"]
"@components/*": ["./src/components/*"],
"@api/*": ["./src/app/api/*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
Expand Down

0 comments on commit 015a82c

Please sign in to comment.