Enable source maps for Vite (frontend) to help debugging in the browser.

This commit is contained in:
C. Fuhrman 2024-10-30 21:40:35 -04:00
parent 8be2efbe48
commit 123c49662f
2 changed files with 4 additions and 0 deletions

View file

@ -49,6 +49,7 @@ const ManageRoom: React.FC = () => {
setQuiz(quiz as QuizType);
if (!socket) {
console.log(`no socket in ManageRoom, creating one.`);
createWebSocketRoom();
}

View file

@ -21,4 +21,7 @@ export default defineConfig({
host: true,
origin: "http://0.0.0.0:5173",
},
build: {
sourcemap: true, // Enable source maps
},
});