Skip to content

Conversation

@nomennominatur
Copy link

This is an alternative to the proposed change of PR #30. This PR is NOT intended to downvote #30. Just an alternative.

Problem summary

dev server fails during SSR because server-side code calls navigator, which doesn’t exist in Node. The stack shows the call originates in src/store/index.ts -> detectDevice, causing 500 errors for page and favicon requests.

Fix

Edit src/store/index.ts to avoid accessing navigator during SSR. Replace direct navigator usage with a safe browser check using SvelteKit’s browser flag or a typeof check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant