Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add template with SolidStart + SSR #534

Open
Mrcavas opened this issue Aug 10, 2024 · 1 comment
Open

Add template with SolidStart + SSR #534

Mrcavas opened this issue Aug 10, 2024 · 1 comment
Assignees
Labels
documentation Improvements or additions to documentation examples Improvements or additions to the examples

Comments

@Mrcavas
Copy link

Mrcavas commented Aug 10, 2024

Currently there is a template using SolidJS, however it's only CSR. Using jitar with SSR isn't very documented, so having an example for people to go off of would help.

@basmasking basmasking added documentation Improvements or additions to documentation examples Improvements or additions to the examples labels Aug 10, 2024
@petermasking petermasking self-assigned this Aug 12, 2024
@petermasking
Copy link
Member

After some research and experimentation, it appears that it isn't currently possible to get SSR working with Jitar. However, we are actively working on a solution. Details are provided below.

The problem
All imports controlled by Jitar fail in SSR mode. This issue is caused by Jitar's current segmentation strategy, which requires remote module loading. This is prohibited by default in SolidJS, and for good reasons. I haven't found any configuration options to override this behavior (such as the --experimental-network-imports option for Node.js).

The solution
We are aware of the risks associated with remote module loading, and we're already working on a solution. In issue #296, we're developing a new caching strategy that relies exclusively on static imports. This approach will eliminate the need for remote module loading, making it easier to enable SSR.

Conclusion
We don't have a short-term solution at the moment, but we're actively working on a long-term fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation examples Improvements or additions to the examples
Projects
None yet
Development

No branches or pull requests

3 participants