Skip to content

Commit

Permalink
Merge pull request #7 from JumboCode/johnny/pathaliases
Browse files Browse the repository at this point in the history
Update path alias
  • Loading branch information
wkim10 authored Oct 11, 2024
2 parents 87af031 + 015a82c commit 2e92395
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 2e92395

Please sign in to comment.