Skip to content

Commit 67ea834

Browse files
author
konrad
committed
Use root asset paths for custom domain
1 parent 4316a59 commit 67ea834

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636

3737
- name: Build site
3838
env:
39-
VITE_BASE_PATH: /OwnerLensGraph/
39+
VITE_BASE_PATH: /
4040
run: npm run build
4141

4242
- name: Setup GitHub Pages

src/tests/githubPagesWorkflow.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,11 @@ describe('GitHub Pages deployment workflow', () => {
1010
/uses: actions\/configure-pages@v6\s+with:\s+enablement: true/,
1111
);
1212
});
13+
14+
test('builds asset URLs from the custom-domain root', () => {
15+
const workflowPath = path.resolve(process.cwd(), '.github/workflows/deploy.yml');
16+
const workflow = fs.readFileSync(workflowPath, 'utf8');
17+
18+
expect(workflow).toMatch(/VITE_BASE_PATH: \/\n/);
19+
});
1320
});

0 commit comments

Comments
 (0)