We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d7cdfe commit 53a0337Copy full SHA for 53a0337
.github/workflows/deploy.yml
@@ -39,7 +39,7 @@ jobs:
39
- name: Build
40
run: |
41
cd demo
42
- pnpm run build
+ GITHUB_PAGES=true pnpm run build
43
44
- name: Setup Pages
45
uses: actions/configure-pages@v4
demo/next.config.ts
@@ -1,13 +1,20 @@
1
import type { NextConfig } from "next";
2
3
+/** @type {import('next').NextConfig} */
4
+const isGithubPages = process.env.GITHUB_PAGES === 'true';
5
+
6
const nextConfig: NextConfig = {
7
output: 'export',
8
trailingSlash: true,
9
images: {
10
unoptimized: true
11
},
- basePath: '',
- assetPrefix: '',
12
+ ...(isGithubPages
13
+ ? {
14
+ basePath: '/pvq-sdk',
15
+ assetPrefix: '/pvq-sdk/',
16
+ }
17
+ : {}),
18
};
19
20
export default nextConfig;
0 commit comments