Full SSR support
See original GitHub issueDescription
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:
- Created 2 years ago
- Reactions:1
- Comments:8 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
If one of the maintainers agrees, I could raise a PR but without their agreement on the approach I’m reluctant 😉
@bakerkretzmar reading it off of the config and then falling back to the window would be great for me!