Skip to content

Commit 3ad30e6

Browse files
committed
fix: configure base path for github pages
1 parent 0487db7 commit 3ad30e6

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ jobs:
3434

3535
- name: Build docs
3636
run: npm run docs:build
37+
env:
38+
NODE_ENV: production
3739

3840
- name: Upload artifact
3941
uses: actions/upload-pages-artifact@v3

docs/.vitepress/config.mts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
import { defineConfig } from 'vitepress'
22

3+
const base = process.env.NODE_ENV === 'production' ? '/erc7866/' : '/'
4+
35
export default defineConfig({
6+
base,
47
title: 'ERC-7866',
58
description: 'Gravatar for Web3 - ERC-7866 Standard for Decentralised User Profiles',
69
lang: 'en-US',
710

811
head: [
9-
['link', { rel: 'icon', href: '/favicon.svg' }],
12+
['link', { rel: 'icon', href: `${base}favicon.svg` }],
1013
['meta', { name: 'theme-color', content: '#6366f1' }],
1114
],
1215

0 commit comments

Comments
 (0)