I have created one static page, I wanna load specific JS only on specific static page, Here my static page name is ship_custom_page
If I have to load specific JS in product page so I am using catalog_product_view.xml
but how can I load only for specific static page ? and I am using community Magento2.4.0 version so Magento removed update layout field from static page.
My custom cms page url key is custom-shipping-page
Here is my code
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head>
<link src="Magento_Cms::js/map-file.js"/>
</head>
</page>