-
-
Notifications
You must be signed in to change notification settings - Fork 142
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
SSR support #675
Labels
enhancement
New feature or request
Comments
感谢反馈,这个问题是我以前没有考虑到的,现在正在进行持续改进! |
我晚点提一个pr修复它 |
我已经找出所有顶层的 |
我再测测,非常感谢! |
qwqcode
added a commit
that referenced
this issue
Dec 18, 2023
qwqcode
added a commit
that referenced
this issue
Dec 18, 2023
目前这个测试用例已经通过编译,之前会报 window undefined 的错误: https://github.com/ArtalkJS/Artalk/blob/master/test/ssg-test/.vitepress/theme/Artalk.vue 该用例中包含:
相关参考文档:
fixes #608 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It would be great for artalk to support SSR (or SSG in another way).
To support this, artalk must not access any dom realted variables before actual api call (i.e.:
Artalk.init
)Currently artalk is at least accessing window object in main context.
Solution
before:
after:
The text was updated successfully, but these errors were encountered: