Skip to content

Commit cd5ca1e

Browse files
Copilotnirukk52
andcommitted
Clarify console.log usage in frontend vs backend
Co-authored-by: nirukk52 <[email protected]>
1 parent a56386f commit cd5ca1e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/copilot-instructions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,10 +206,10 @@ let count = $state(0);
206206
// Derived values
207207
const double = $derived(count * 2);
208208

209-
// Side effects (for logging, use structured logging in backend)
209+
// Side effects
210210
$effect(() => {
211-
// Frontend: can use console for debugging
212-
// Backend: always use encore.dev/log
211+
// Note: In frontend, console.log is acceptable for local debugging
212+
// In backend, ALWAYS use encore.dev/log for structured logging
213213
});
214214

215215
// Props

0 commit comments

Comments
 (0)