Skip to content

Commit 3aeddb8

Browse files
committed
ci: 🎡 deploy to subdir
1 parent c3ed87e commit 3aeddb8

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

src/EncodingDemo.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ export function EncodingDemo() {
170170
}, []);
171171

172172
function startPlayback() {
173+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
174+
// @ts-expect-error
173175
playbackIntervalRef.current = setInterval(() => {
174176
setSignalMarkerPos((signalMarkerPos) => Number(signalMarkerPos) + 0.1)
175177
},

src/utils.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,8 @@ export function debounce(func: () => void, time = 200) {
227227
if (timer) {
228228
clearTimeout(timer);
229229
}
230+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
231+
// @ts-expect-error
230232
timer = setTimeout(func, time);
231233
};
232234
}

vite.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,7 @@ import react from '@vitejs/plugin-react'
55
export default defineConfig({
66
base: "/",
77
plugins: [react()],
8+
build: {
9+
outDir: 'dist/dev/'
10+
}
811
})

0 commit comments

Comments
 (0)