question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Description

The library still uses window in some places and thus SSR will fail.

Suggestion

Maybe we can add a getLocation option to the config that will return window.location by default. Having that one could easily pass a static location to Ziggy while using SSR and thus it wouldn’t fail.

Alternatives

n/a

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
jaulzcommented, Jun 3, 2021

If one of the maintainers agrees, I could raise a PR but without their agreement on the approach I’m reluctant 😉

0reactions
aarondfranciscommented, Jun 4, 2021

@bakerkretzmar reading it off of the config and then falling back to the window would be great for me!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Server-Side Rendering - Vite
Vite provides built-in support for server-side rendering (SSR). The Vite playground contains example SSR setups for Vue 3 and React, which can be...
Read more >
SSR Support for AWS Amplify JavaScript Libraries
Enabling Server-Side Rendering (SSR) support in an Amplify app ... For a full walkthrough of how to install and configure the CLI, ...
Read more >
Server-Side Rendering (SSR) - Vue.js
Check out the SSR API Reference for full details. ... Vite provides built-in support for Vue server-side rendering, but it is intentionally low-level....
Read more >
What is Server-Side Rendering (SSR)? What Frameworks ...
What Frameworks Support SSR for Web Development? SSR was fairly in use before search engines adopted JavaScript for rendering web pages on client...
Read more >
Client-side vs. Server-side vs. Pre-rendering for Web Apps
Today's heavier front ends don't help. ... compares client-side vs server-side and also pre-rendering strategies to help you ... SSR, Full, Full, Full,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found