Skip to content

Commit 2c2552c

Browse files
committed
set proper path prefix in Next config
1 parent b6aaeef commit 2c2552c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/deploy-website.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ jobs:
4343
- name: 📦️ Build website app
4444
working-directory: website
4545
run: yarn build
46+
env:
47+
REPOSITORY_NAME: 'nightly-tests'
4648

4749
- name: 🚀 Deploy to GitHub Pages
4850
uses: peaceiris/actions-gh-pages@v4

website/next.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ const nextConfig: NextConfig = {
44
reactStrictMode: true,
55
poweredByHeader: false,
66
output: "export",
7+
basePath: process.env.REPOSITORY_NAME ? `/${process.env.REPOSITORY_NAME}` : undefined,
8+
assetPrefix: process.env.REPOSITORY_NAME ? `/${process.env.REPOSITORY_NAME}` : undefined,
79
turbopack: {
810
rules: {
911
"*.svg": {

0 commit comments

Comments
 (0)