Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions client/component/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,12 @@ const Sidebar = ({
}, [sidebarOpen]);

function handleSignOut(event: MouseEvent): void {
signOut();
router.push("/");
event.preventDefault();

signOut({
redirect: true,
callbackUrl: "/home",
});
}

return (
Expand Down
4 changes: 2 additions & 2 deletions client/lib/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ export default withAuth({
});

export const config = {
matcher : ['/topics', '/dashboard']
}
matcher: ["/topics", "/dashboard"],
};
16 changes: 16 additions & 0 deletions server/start-server.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

# Check if port 8080 is in use
PID=$(lsof -ti:8080)

if [ -n "$PID" ]; then
echo "Port 8080 is in use by process $PID. Killing it..."
sudo kill -9 $PID
echo "Process $PID killed."
else
echo "Port 8080 is free."
fi

# Now start the Spring Boot application
echo "Starting Spring Boot application..."
mvn spring-boot::run # or 'java -jar target/your-app.jar'
Loading