Skip to content

Commit

Permalink
fix demo base path
Browse files Browse the repository at this point in the history
  • Loading branch information
boiln committed Jan 24, 2025
1 parent ee2db4a commit 3f3fcac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/FileUpload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function FileUpload({ onSessionLoaded }: FileUploadProps) {
const loadDemoFile = async () => {
setLoading(true);
try {
const response = await fetch("/demo.har");
const response = await fetch(`${process.env.NEXT_PUBLIC_BASE_PATH || ""}/demo.har`);
if (!response.ok) {
throw new Error("Failed to load demo file");
}
Expand Down

0 comments on commit 3f3fcac

Please sign in to comment.