Skip to content

Commit fb1cc88

Browse files
committed
added github page
1 parent 98c0a66 commit fb1cc88

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

.github/workflows/pages.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ concurrency:
1717
jobs:
1818
build:
1919
runs-on: ubuntu-latest
20+
env:
21+
NODE_ENV: production
2022
steps:
2123
- uses: actions/checkout@v4
2224
- uses: oven-sh/setup-bun@v2

packages/docs/src/router.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ export function getRouter() {
99
defaultPreload: 'intent',
1010
scrollRestoration: true,
1111
defaultNotFoundComponent: NotFound,
12+
basepath: import.meta.env.PROD ? '/duron' : '/',
1213
})
1314
}

packages/docs/vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { defineConfig } from 'vite'
88
import tsConfigPaths from 'vite-tsconfig-paths'
99

1010
export default defineConfig({
11+
base: process.env.NODE_ENV === 'production' ? '/duron' : '/',
1112
server: {
1213
port: 3001,
1314
},

0 commit comments

Comments
 (0)