Skip to content

Commit e82c8ca

Browse files
committed
Deployment
1 parent ce45064 commit e82c8ca

9 files changed

Lines changed: 49 additions & 34 deletions

File tree

.copilot/dev-environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ dev_tools:
2525
purpose: "Animation library for smooth micro-interactions"
2626
- name: "radix-ui/react-*"
2727
purpose: "Accessible primitive components for UI foundation"
28-
- name: "lucide-react"
28+
- name: "radix-ui/react-icons"
2929
purpose: "Consistent icon system with proper sizing"
3030

3131
# Browser support for testing UI changes

.copilot/instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ You are working on CodeStorm Hub's portfolio website - a modern Next.js 15 appli
3333
- **Styling System**: Tailwind CSS 4 with design tokens and utility-first approach
3434
- **Typography**: Geist Sans and Geist Mono font families for optimal readability
3535
- **Color System**: Radix Colors for semantic, accessible color palettes
36-
- **Icons**: Lucide React icons with consistent sizing and styling
36+
- **Icons**: Radix UI icons with consistent sizing and styling
3737
- **State Management**: React hooks, Context API, and Zustand for complex state
3838
- **Animation**: Framer Motion for smooth, purposeful animations
3939
- **Layout**: CSS Grid and Flexbox with container queries for responsive design

.github/INSTRUCTIONS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ CodeStorm Hub is a vibrant community portfolio website built with modern web tec
88
- **Language**: TypeScript
99
- **Styling**: Tailwind CSS 4
1010
- **UI Components**: Radix UI primitives
11-
- **Icons**: Lucide React
11+
- **Icons**: Radix UI Icons
1212
- **Deployment**: Vercel
1313

1414
## Development Environment

.github/copilot-instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ CodeStorm Hub is a modern portfolio website showcasing open source community pro
1010
- **Language**: TypeScript with strict mode enabled
1111
- **Styling**: Tailwind CSS 4 with utility-first approach
1212
- **UI Components**: Radix UI primitives for accessibility
13-
- **Icons**: Lucide React for consistent iconography
13+
- **Icons**: Radix UI Icons for consistent iconography
1414
- **Typography**: Geist Sans and Geist Mono fonts
1515
- **Colors**: Radix Colors for semantic color usage
1616
- **Deployment**: Vercel with automatic deployments

.github/workflows/deploy.yml

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,38 +7,51 @@ on:
77
pull_request:
88
branches:
99
- main
10+
workflow_dispatch:
1011

11-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1212
permissions:
1313
contents: read
1414
pages: write
1515
id-token: write
1616

17-
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
18-
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
1917
concurrency:
2018
group: "pages"
2119
cancel-in-progress: false
2220

2321
jobs:
24-
# Build job
2522
build:
2623
runs-on: ubuntu-latest
2724
steps:
28-
- name: Checkout
25+
- name: Checkout repository
2926
uses: actions/checkout@v4
3027

3128
- name: Setup Node.js
3229
uses: actions/setup-node@v4
3330
with:
34-
node-version: '20'
31+
node-version: 22
3532
cache: 'npm'
3633

3734
- name: Install dependencies
3835
run: npm ci
3936

40-
- name: Build Next.js application
37+
- name: Setup Pages
38+
id: setup_pages
39+
uses: actions/configure-pages@v5
40+
41+
- name: Restore Next.js build cache
42+
uses: actions/cache@v4
43+
with:
44+
path: .next/cache
45+
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx', '**/*.ts', '**/*.tsx') }}
46+
restore-keys: |
47+
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
48+
49+
- name: Build (GitHub Pages)
50+
# Ensure your build script outputs static assets to ./out
51+
# If needed, set output: 'export' in next.config.js
4152
run: npm run build:github-pages
53+
env:
54+
PAGES_BASE_PATH: ${{ steps.setup_pages.outputs.base_path }}
4255

4356
- name: Add .nojekyll file
4457
run: |
@@ -50,18 +63,19 @@ jobs:
5063
- name: Debug build output
5164
run: |
5265
echo "Build output structure:"
53-
ls -la out/
54-
echo "Checking _next directory:"
55-
ls -la out/_next/
56-
echo "Checking static assets:"
57-
ls -la out/_next/static/chunks/ | head -5
66+
ls -la out/
67+
echo "Checking _next directory (if present):"
68+
ls -la out/_next/ || echo "_next directory not found (ensure static export)."
69+
if [ -d out/_next/static/chunks ]; then
70+
echo "Checking static chunks:"
71+
ls -la out/_next/static/chunks/ | head -20
72+
fi
5873
5974
- name: Upload artifact
6075
uses: actions/upload-pages-artifact@v3
6176
with:
6277
path: ./out
6378

64-
# Deployment job
6579
deploy:
6680
environment:
6781
name: github-pages

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515

1616
# next.js
1717
/.next/
18-
/out/
18+
# The `out` directory should not be ignored by version control
19+
# /out/
1920

2021
# production
2122
/build
@@ -31,7 +32,7 @@ yarn-error.log*
3132
.pnpm-debug.log*
3233

3334
# env files (can opt-in for committing if needed)
34-
.env*
35+
.env*.local
3536

3637
# vercel
3738
.vercel

next.config.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,18 @@ const isGitHubPages = process.env.NODE_ENV === 'production' && process.env.GITHU
44

55
const nextConfig: NextConfig = {
66
// Only enable export for GitHub Pages production builds
7-
...(isGitHubPages && { output: 'export' }),
8-
trailingSlash: true,
7+
...(isGitHubPages && { output: "export" }),
8+
trailingSlash: false,
99
images: {
1010
// Only disable optimization for GitHub Pages
1111
unoptimized: Boolean(isGitHubPages),
1212
remotePatterns: [new URL("https://github.com/CodeStorm-Hub.png")],
1313
},
1414
// GitHub Pages specific configuration
1515
...(isGitHubPages && {
16-
basePath: '/CodeStorm-Hub.github.io',
17-
assetPrefix: '/CodeStorm-Hub.github.io/',
16+
output: "export",
17+
basePath: process.env.PAGES_BASE_PATH,
18+
assetPrefix: "/CodeStorm-Hub.github.io/",
1819
}),
1920
};
2021

package-lock.json

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
"@radix-ui/react-toast": "^1.2.15",
2020
"class-variance-authority": "^0.7.1",
2121
"clsx": "^2.1.1",
22-
"lucide-react": "^0.544.0",
2322
"next": "15.5.4",
2423
"react": "19.1.0",
2524
"react-dom": "19.1.0",

0 commit comments

Comments
 (0)