Skip to content

Commit

Permalink
return mistakenly removed nextConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
Assem-Hafez committed Apr 5, 2024
1 parent 931488a commit 2f437d3
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
// next.config.js
/** @type {import('next').NextConfig} */
const nextConfig = {};

export default nextConfig;
import path from 'path';
import { fileURLToPath } from 'url';

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);

const nextConfig = {
webpack: (config) => {
config.resolve.alias = {
...config.resolve.alias,
'@': path.resolve(__dirname, './src'),
};

return config;
},
};

export default nextConfig;

0 comments on commit 2f437d3

Please sign in to comment.