Aryan-Walia

Aryan Walia - Portfolio

A modern, responsive portfolio website built with Next.js, React, and Framer Motion.

πŸš€ Live Demo

Visit: https://4ryanwalia.github.io/Aryan-Walia/

πŸ› οΈ Technologies Used

πŸ“ Project Structure

my-portfolio/
β”œβ”€β”€ pages/          # Next.js pages
β”œβ”€β”€ public/         # Static assets
β”œβ”€β”€ styles/         # Global styles
β”œβ”€β”€ components/     # React components
└── .github/        # GitHub Actions

πŸš€ Deployment

This project uses GitHub Actions for automatic deployment. Simply push to the main branch and it will automatically deploy to GitHub Pages.

Manual Deployment

  1. Build the project:
    npm run build
    
  2. The build output will be in the out/ directory

  3. Deploy to GitHub Pages:
    • Go to your repository settings
    • Navigate to β€œPages” section
    • Set source to β€œGitHub Actions”

πŸ”§ Local Development

  1. Install dependencies:
    npm install
    
  2. Run development server:
    npm run dev
    
  3. Open http://localhost:3000

πŸ“ Features

🎨 Customization

πŸ“„ License

This project is open source and available under the MIT License.


Aryan Walia - Developer & Tech Enthusiast


Let’s Fix the Resume Page 404

1. Check the Exported Output

Next.js static export (next export) should generate:

out/resume/index.html

and

out/AryanWaliaResume.pdf

If out/resume/index.html is missing, the resume page won’t work.


2. Why This Might Happen


3. How to Debug

A. Check the out Directory Locally

  1. Run:
    npm run build && npm run export
    
  2. Open the out folder.
  3. Confirm you see:
    • out/index.html
    • out/resume/index.html
    • out/AryanWaliaResume.pdf

B. If resume/index.html is missing:


4. Possible Causes & Fixes

A. basePath and assetPrefix

You have:

basePath: '/Aryan-Walia',
assetPrefix: '/Aryan-Walia/',

This is correct for GitHub Pages.
But, all internal links should use the Next.js Link component and not hardcoded paths.

In your index.js and navigation, make sure you use:

<Link href="/resume">Resume</Link>

and not /Aryan-Walia/resume.

C. Export Path Map (Rarely Needed)

If the page is not exported, you can add a next.config.mjs exportPathMap (but with Next 15, this is rarely needed).


5. PDF Path

Your PDF path in resume.js should be:

src={`${process.env.NEXT_PUBLIC_BASE_PATH || ''}/AryanWaliaResume.pdf`}

But with your current config, /Aryan-Walia/AryanWaliaResume.pdf is correct.


Action Plan

  1. Run the build and export locally.
  2. Check if out/resume/index.html exists.
  3. If it does not exist, let me know.
  4. If it does exist, push to GitHub and redeploy.

If you want, you can upload a screenshot of your out directory after export, or paste the directory listing here.

Let me know what you find, and I’ll guide you to a solution!