Skip to content

Commit

Permalink
Add alias paths to vite build
Browse files Browse the repository at this point in the history
  • Loading branch information
walidkayhan committed Sep 6, 2024
1 parent e8bddbb commit a7c8601
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/app/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,13 @@ export default defineConfig({
tsconfigPaths(),
react(),
],
resolve: {
alias: {
app: path.resolve(__dirname, './src'),
'@': path.resolve(__dirname, './src'),
},
},
define: {
'process.env': {},
},
});

0 comments on commit a7c8601

Please sign in to comment.