Skip to content

fix(nuxt): ensure payload script executes before loading entry#27506

Merged
danielroe merged 2 commits intomainfrom
fix/defined-payload
Jun 10, 2024
Merged

fix(nuxt): ensure payload script executes before loading entry#27506
danielroe merged 2 commits intomainfrom
fix/defined-payload

Conversation

@danielroe
Copy link
Copy Markdown
Member

🔗 Linked issue

resolves #24391

📚 Description

When we extract payloads + use a script rather than a payload JSON, we can't await the payload importing before executing the entry.

We can, however, move the entry script to the end so it executes after processing the payload script.

@bolt-new-by-stackblitz
Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Nuxt>3.7.0 Client with deactivated "renderJsonPayloads" fails with "TypeError: Cannot read properties of undefined (reading 'baseURL')"

2 participants