Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

nextjs path alias

// tsconfig.json or jsconfig.json
{
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "@/design-system/*": ["components/design-system/*"]
    }
  }
}
Source by nextjs.org #
 
PREVIOUS NEXT
Tagged: #nextjs #path #alias
ADD COMMENT
Topic
Name
4+1 =