The assetPrefix is not properly setting for Segmented/Groups routes layout html.
Unanswered
Northeast Congo Lion posted this in #help-forum
Northeast Congo LionOP
CDN assetPrefix are not prepending for First Load JS assets ([cdn]/main-app-[hash].js, [cdn]/webpack-[hash].js, 3 more files). One thing I noticed is, the above files are fetching for Dynamic Segments or Groups routes and for those layouts html alone the assetPrefix is not setting the assetPrefix path which, instead the assets are served from the base app.
Am getting this in server build as like the below example.
Non grouped route layout build html
Grouped / Segmented route layout build html
Am getting this in server build as like the below example.
Non grouped route layout build html
<script src="https://xxx.cloudfront.net/_next/static/chunks/webpack-xxx.js">Grouped / Segmented route layout build html
<script src="/_next/static/chunks/webpack-xxx.js">