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

chore: Not parse template in SSG/SSR #5853

Merged
merged 1 commit into from
Feb 2, 2023
Merged

Conversation

answershuto
Copy link
Collaborator

No description provided.

@@ -108,7 +108,7 @@ export function loadDataByCustomFetcher(config: StaticDataLoader) {
let parsedConfig = config;
try {
// Not parse template in SSG/SSR.
if (typeof window === 'undefined') {
if (typeof window !== 'undefined') {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import.meta.renderer === 'client'

@ClarkXia ClarkXia merged commit eb9c562 into release/3.1.0 Feb 2, 2023
@ClarkXia ClarkXia deleted the fix/parseTemplate branch February 2, 2023 10:32
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.

3 participants