-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Stack Overflow Question: https://stackoverflow.com/questions/61478514/is-there-a-way-to-have-the-client-side-script-also-auto-loaded-from-the-proxy-cl#
We should be able to return the client script URLs in the Hypernova response and inject the corresponding script tags when including the Nova views.
Example.
{
"success": true,
"error": null,
"results": {
"example": {
"name": "Example",
"html": "<div data-hypernova-key=\"Example\" data-hypernova-id=\"33719ec2-1b19-4023-8b2b-e82aa29990cc\"><h1 data-server-rendered=\"true\">Ara Framework</h1></div>\n<script type=\"application/json\" data-hypernova-key=\"Example\" data-hypernova-id=\"33719ec2-1b19-4023-8b2b-e82aa29990cc\"><!--{\"title\":\"Ara Framework\"}--></script>",
"meta": {
"src": "http://localhost:3000/public/client.js"
},
"duration": 0.36806,
"statusCode": 200,
"success": true,
"error": null
}
}
}Nova Proxy should include the next HTML element in the host page:
<script async src="http://localhost:3000/public/client.js" >lodacom
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request