diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 4f6baa6..34de61b 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -3,7 +3,7 @@ import Head from 'next/head' import RocketseatLogo from '../assets/rocketseat.svg' -import { Container } from '../styles/pages/Home' +import { Container } from '@/styles/pages/Home' const Home: React.FC = () => { return ( diff --git a/tsconfig.json b/tsconfig.json index 35d51ea..56d0a89 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -16,7 +16,22 @@ "moduleResolution": "node", "resolveJsonModule": true, "isolatedModules": true, - "jsx": "preserve" + "jsx": "preserve", + "baseUrl": "./src", + "paths": { + "@/*": ["./*"] + } + "paths": { + "@/components/*": [ + "src/components/*" + ], + "@/lib/*": [ + "src/lib/*" + ], + "@/styles/*": [ + "src/styles/*" + ] + } }, "include": [ "next-env.d.ts",