Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,15 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Set up environment variables
run: |
echo "🔧 Setting up environment variables for build..."
echo "NEXT_PUBLIC_API_URL=http://localhost:3000/api" >> .env.local
echo "NEXT_PUBLIC_APP_URL=http://localhost:3000" >> .env.local
echo "NEXTAUTH_SECRET=ci-test-secret-key" >> .env.local
echo "NEXTAUTH_URL=http://localhost:3000" >> .env.local
echo "DATABASE_URL=postgresql://test:test@localhost:5432/test_db" >> .env.local

- name: Build application
run: npm run build

Expand Down Expand Up @@ -191,6 +200,15 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Set up environment variables
run: |
echo "🔧 Setting up environment variables for build..."
echo "NEXT_PUBLIC_API_URL=http://localhost:3000/api" >> .env.local
echo "NEXT_PUBLIC_APP_URL=http://localhost:3000" >> .env.local
echo "NEXTAUTH_SECRET=ci-test-secret-key" >> .env.local
echo "NEXTAUTH_URL=http://localhost:3000" >> .env.local
echo "DATABASE_URL=postgresql://test:test@localhost:5432/test_db" >> .env.local

- name: Build with bundle analysis
run: |
npm run build
Expand Down Expand Up @@ -223,6 +241,15 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Set up environment variables
run: |
echo "🔧 Setting up environment variables for build..."
echo "NEXT_PUBLIC_API_URL=http://localhost:3000/api" >> .env.local
echo "NEXT_PUBLIC_APP_URL=http://localhost:3000" >> .env.local
echo "NEXTAUTH_SECRET=ci-test-secret-key" >> .env.local
echo "NEXTAUTH_URL=http://localhost:3000" >> .env.local
echo "DATABASE_URL=postgresql://test:test@localhost:5432/test_db" >> .env.local

- name: Build application
run: npm run build

Expand Down Expand Up @@ -264,6 +291,15 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Set up environment variables
run: |
echo "🔧 Setting up environment variables for build..."
echo "NEXT_PUBLIC_API_URL=http://localhost:3000/api" >> .env.local
echo "NEXT_PUBLIC_APP_URL=http://localhost:3000" >> .env.local
echo "NEXTAUTH_SECRET=ci-test-secret-key" >> .env.local
echo "NEXTAUTH_URL=http://localhost:3000" >> .env.local
echo "DATABASE_URL=postgresql://test:test@localhost:5432/test_db" >> .env.local

- name: Build application
run: npm run build

Expand Down Expand Up @@ -295,6 +331,15 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Set up environment variables
run: |
echo "🔧 Setting up environment variables for build..."
echo "NEXT_PUBLIC_API_URL=http://localhost:3000/api" >> .env.local
echo "NEXT_PUBLIC_APP_URL=http://localhost:3000" >> .env.local
echo "NEXTAUTH_SECRET=ci-test-secret-key" >> .env.local
echo "NEXTAUTH_URL=http://localhost:3000" >> .env.local
echo "DATABASE_URL=postgresql://test:test@localhost:5432/test_db" >> .env.local

- name: Build application
run: npm run build

Expand Down
18 changes: 16 additions & 2 deletions components/landing-page/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,16 @@ export function Navbar() {
);
}

function AuthenticatedNav({ user }: { user: any }) {
function AuthenticatedNav({
user,
}: {
user: {
name?: string | null;
email?: string | null;
image?: string | null;
profile?: { firstName?: string | null; avatar?: string | null };
} | null;
}) {
const { logout } = useZustandAuth(false);

return (
Expand Down Expand Up @@ -294,7 +303,12 @@ function MobileMenu({
}: {
isAuthenticated: boolean;
isLoading: boolean;
user: any;
user: {
name?: string | null;
email?: string | null;
image?: string | null;
profile?: { firstName?: string | null; avatar?: string | null };
} | null;
}) {
const mobileMenuRef = useRef<HTMLDivElement>(null);
const mobileButtonRef = useRef<HTMLButtonElement>(null);
Expand Down
1 change: 1 addition & 0 deletions next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const nextConfig: NextConfig = {
/* config options here */
outputFileTracingRoot: __dirname,
images: {
domains: ['i.pravatar.cc'],
remotePatterns: [
{
protocol: 'https',
Expand Down
Loading
Loading