Skip to content

Commit 2d8bbf2

Browse files
Ajit Pratap Singhclaude
authored andcommitted
fix(website): enable Next.js static export for GitHub Pages deployment
- Add output: 'export' and images.unoptimized for static site generation - Update workflow artifact path from dist to out (Next.js export output dir) - Restore CNAME file to preserve gosqlx.dev custom domain on deploy Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 4aed236 commit 2d8bbf2

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/website.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
- name: Upload Pages artifact
5454
uses: actions/upload-pages-artifact@v3
5555
with:
56-
path: website/dist
56+
path: website/out
5757

5858
deploy:
5959
needs: build

website/next.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ const withAnalyzer = withBundleAnalyzer({
66
});
77

88
const nextConfig: NextConfig = {
9+
output: 'export',
10+
images: {
11+
unoptimized: true,
12+
},
913
async headers() {
1014
return [
1115
{

website/public/CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
gosqlx.dev

0 commit comments

Comments
 (0)