Skip to content
View MJAsrar's full-sized avatar

Block or report MJAsrar

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
mjasrar/README.md

mjasrar.site

Two sites in one Next.js app, each with its own root layout, styles and fonts:

Site Route Code
MJAsrar company site /, /services, /work, /work/[slug], /about, /contact app/(site)/, components/site/, lib/site.ts
Junaid Asrar's portfolio portfolio.mjasrar.site (route /portfolio) app/(portfolio)/, components/portfolio/, lib/portfolio/

Company copy, services, case studies, FAQ and company details (legal name, email) all live in lib/site.ts.

Portfolio subdomain

The portfolio is served at portfolio.mjasrar.site, a domain on the same Vercel project. proxy.ts rewrites any portfolio.* host to the /portfolio route, and next.config.ts permanently redirects mjasrar.site/portfolio to the subdomain.

Locally, use http://localhost:3000/portfolio or http://portfolio.localhost:3000.

Develop

npm run dev
npm run lint
npm run build

Popular repositories Loading

  1. ondemandserviceapp ondemandserviceapp Public

  2. university-lost-and-found university-lost-and-found Public

    TypeScript

  3. personalweb personalweb Public

    TypeScript

  4. covergenie covergenie Public

    TypeScript

  5. gym gym Public

    TypeScript

  6. profyleai profyleai Public

    TypeScript