Skip to content

Commit 87b17fb

Browse files
committed
fix: add Vercel build configuration for Hugo
1 parent 0ed3127 commit 87b17fb

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

build.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
# Install Hugo
4+
echo "Installing Hugo Extended v0.150.1..."
5+
wget https://github.com/gohugoio/hugo/releases/download/v0.150.1/hugo_extended_0.150.1_Linux-64bit.tar.gz
6+
tar -xzf hugo_extended_0.150.1_Linux-64bit.tar.gz
7+
chmod +x hugo
8+
9+
# Build the site
10+
echo "Building Hugo site..."
11+
./hugo --gc --minify
12+
13+
echo "Build completed!"
14+

vercel.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"buildCommand": "bash build.sh",
3+
"outputDirectory": "public",
4+
"installCommand": "pnpm install"
5+
}

0 commit comments

Comments
 (0)