Skip to content

Commit

Permalink
tailwind problems
Browse files Browse the repository at this point in the history
  • Loading branch information
DDecoene committed Dec 23, 2024
1 parent 4896cfb commit 654a90a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
7 changes: 4 additions & 3 deletions next.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import type { NextConfig } from "next";

const nextConfig: NextConfig = {
output: 'export', // Enable static exports
output: 'export',
images: {
unoptimized: true, // Required for static export
unoptimized: true,
},
basePath: process.env.NODE_ENV === 'production' ? '/cv-app' : '', // Replace with your repository name
basePath: process.env.NODE_ENV === 'production' ? '/cv-app' : '',
assetPrefix: process.env.NODE_ENV === 'production' ? '/cv-app' : '',
};

export default nextConfig;
2 changes: 1 addition & 1 deletion src/app/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default function Sidebar({ personal, languages }: SidebarProps) {
<div className="mt-4">
<div className="w-32 h-32 rounded-full overflow-hidden border-4 border-white shadow-lg relative">
<Image
src="/profile_pic_maxime.jpeg"
src={process.env.NODE_ENV === 'production' ? '/cv-app/profile_pic.png' : '/profile_pic.png'}
alt="Profile picture"
width={128}
height={128}
Expand Down
4 changes: 3 additions & 1 deletion tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@ const config: Config = {
},
},
plugins: [],
// Add important configuration to ensure styles are applied
important: true,
};
export default config;
export default config;

0 comments on commit 654a90a

Please sign in to comment.