Skip to content

Commit 7e0b656

Browse files
authored
Fixed BASE_URL and added sourcemap (#47)
1 parent 227b21e commit 7e0b656

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/interactdocs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ jobs:
4242
- name: Build docs app
4343
run: yarn workspace @wix/interact-docs build
4444
env:
45-
# Set base path for GitHub Pages deployment to ./ which should be under /docs/
46-
VITE_BASE: ./
45+
# Set base path for GitHub Pages deployment (absolute path for React Router compatibility)
46+
VITE_BASE: /interact/docs/
4747

4848
- name: Setup Pages
4949
uses: actions/configure-pages@1f0c5cde4bc74cd7e1254d0cb4de8d49e9068c7d # v4

apps/docs/vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ export default defineConfig({
9797
port: 4173
9898
},
9999
build: {
100+
sourcemap: true,
100101
rollupOptions: {
101102
input: {
102103
main: path.resolve(__dirname, 'index.html')

0 commit comments

Comments
 (0)