Skip to content

Commit e362b06

Browse files
chore: remove Netlify configuration, use pnpm
1 parent 43bde74 commit e362b06

10 files changed

Lines changed: 6239 additions & 10563 deletions

File tree

.github/workflows/main.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,30 @@ jobs:
1111

1212
steps:
1313
- uses: actions/checkout@v5
14+
1415
- name: Use Node.js 24
1516
uses: actions/setup-node@v5
1617
with:
1718
node-version: 24.x
19+
- name: Setup pnpm
20+
uses: pnpm/action-setup@v4
1821

1922
- name: Cache dependencies
2023
uses: actions/cache@v4
2124
with:
22-
path: ~/.npm
23-
key: npm-${{ hashFiles('package-lock.json') }}
24-
restore-keys: npm-
25+
path: ~/.pnpm-store
26+
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
27+
restore-keys: |
28+
${{ runner.os }}-pnpm-
2529
2630
- name: Install dependencies
27-
run: npm ci --ignore-scripts
31+
run: pnpm install --frozen-lockfile --ignore-scripts
2832
env:
2933
CI: true
3034
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
3135

3236
- name: Build app bundle
33-
run: npm run build
37+
run: pnpm run build
3438

3539
- name: Build & Deploy Worker
3640
uses: cloudflare/wrangler-action@v3
@@ -44,7 +48,7 @@ jobs:
4448
CI: "true"
4549
SRC_URL: "https://krigo.me/resume"
4650
with:
47-
args: npm run make-pdf-resume
51+
args: pnpm run make-pdf-resume
4852
- name: Commit "files/resume.pdf"
4953
run: |
5054
git config --local user.email "action@github.com"

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,3 @@ pnpm-debug.log*
1919

2020
# macOS-specific files
2121
.DS_Store
22-
23-
# Local Netlify folder
24-
.netlify

.netlify/state.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"geolocation": {
3+
"data": {
4+
"city": "Chicago",
5+
"country": {
6+
"code": "US",
7+
"name": "United States"
8+
},
9+
"subdivision": {
10+
"code": "IL",
11+
"name": "Illinois"
12+
},
13+
"timezone": "America/Chicago",
14+
"latitude": 41.9703,
15+
"longitude": -87.664,
16+
"postalCode": "60640"
17+
},
18+
"timestamp": 1762112269051
19+
}
20+
}

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Fail CI if lockfile would change
2+
frozen-lockfile=true

AGENTS.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
44

55
## Project Overview
66

7-
Personal website for Krishna Gopinath ([krigo.me](https://krigo.me)), built with Astro and Tailwind CSS, deployed to Netlify. The site uses server-side rendering with the Netlify adapter.
7+
Personal website for Krishna Gopinath ([krigo.me](https://krigo.me)), built with Astro and Tailwind CSS, deployed to Cloudflare. The site uses server-side rendering with the Cloudflare adapter.
88

99
## Development Commands
1010

@@ -20,7 +20,7 @@ npm run build
2020
# Preview production build
2121
npm run preview
2222

23-
# Deploy to Netlify
23+
# Deploy to Cloudflare
2424
npm run deploy
2525

2626
# Generate PDF resume from resume page
@@ -58,23 +58,22 @@ The resume is managed through a JSON Resume schema workflow:
5858

5959
### Configuration
6060

61-
- **Astro config** ([astro.config.mjs](astro.config.mjs)): Server-side rendering with Netlify adapter, Tailwind integration with custom base styles disabled, MDX support
61+
- **Astro config** ([astro.config.mjs](astro.config.mjs)): Server-side rendering with Cloudflare adapter, Tailwind integration with custom base styles disabled, MDX support
6262
- **Tailwind** ([tailwind.config.cjs](tailwind.config.cjs)): Custom configuration for styling
63-
- **Netlify** ([netlify.toml](netlify.toml)): Build command and publish directory
64-
- **Pages CMS** ([.pages.yml](.pages.yml)): Media management configuration
63+
- **Cloudflare** ([wrangler.jsonc](wrangler.json)): Build command and publish directory
6564

6665
## CI/CD Workflow
6766

6867
GitHub Actions workflow on push to master:
6968
1. Install dependencies with `npm ci --ignore-scripts`
7069
2. Build with `npm run build`
71-
3. Deploy to Netlify with `npm run deploy`
70+
3. Deploy to Cloudflare using `cloudflare/wrangler-action`
7271
4. Generate PDF resume using Puppeteer headful action
7372
5. Commit `files/resume.pdf` back to repository
7473

7574
## Key Dependencies
7675

77-
- **Framework**: Astro 3.x with MDX and Netlify adapters
76+
- **Framework**: Astro 5.x with MDX and Cloudflare adapters
7877
- **Styling**: Tailwind CSS with typography plugin
7978
- **Type Safety**: TypeScript with JSON Resume types
8079
- **PDF Generation**: Puppeteer (used in CI only)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Krishna Gopinath's Website
22

3-
![build status](https://github.com/krishnagopinath/website/workflows/Build%20website/badge.svg) ![Netlify Status](https://api.netlify.com/api/v1/badges/347a004f-2bed-4554-b61d-84b63557936f/deploy-status)
3+
![build status](https://github.com/krishnagopinath/website/workflows/Build%20website/badge.svg)
44

5-
This is the source code for [krigo.me](https://krigo.me), built with [Astro](https://astro.dev) and [tailwind.css](https://tailwindcss.com), deployed to [netlify](https://netlify.com).
5+
This is the source code for [krigo.me](https://krigo.me), built with [Astro](https://astro.dev) and [tailwind.css](https://tailwindcss.com), deployed to [Cloudflare](https://cloudflare.com).
66

77
There are some interesting things that I've done while building this website. I may have gone a little overboard, but it was fun.
88

netlify.toml

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)