Hi,
I recently started having an issue that only happens in my production build deployed on Netlify. My Next.js frontend is deployed at https://www.carterbacon.com (superlative-fairy-8da059.netlify.app) and my Rails api backend is deployed at https://api.carterbacon.com.
After updating the content (text and images) on my homepage via form submission, my homepage shows what I assume is a build object (see below) rather than the site content. This is quite frustrating. Does anyone know how to prevent this from happening?
1:HL[“/_next/static/css/57c2539546470e14.css”,{“as”:“style”}]
0:[“Zg8puOvg5ChDCOuMm-IWy”,[[[“”,{“children”:[“PAGE”,{}]},“$undefined”,“$undefined”,true],“$L2”,[[[“$”,“link”,“0”,{“rel”:“stylesheet”,“href”:“/_next/static/css/57c2539546470e14.css”,“precedence”:“next”}]],[“$L3”,null]]]]]
4:I{“id”:4781,“chunks”:[“185:static/chunks/app/layout-c2a2e8ae8962c5f6.js”],“name”:“UserProvider”,“async”:false}
5:I{“id”:9180,“chunks”:[“272:static/chunks/webpack-88ccadedfc8c32f8.js”,“704:static/chunks/87bc1fd9-a8c002851cd4f60d.js”,“125:static/chunks/125-05bf55d581f8cbb0.js”],“name”:“default”,“async”:false}
6:I{“id”:2306,“chunks”:[“272:static/chunks/webpack-88ccadedfc8c32f8.js”,“704:static/chunks/87bc1fd9-a8c002851cd4f60d.js”,“125:static/chunks/125-05bf55d581f8cbb0.js”],“name”:“default”,“async”:false}
2:[[“$”,“html”,null,{“lang”:“en”,“children”:[“$”,“body”,null,{“children”:[“$”,“$L4”,null,{“children”:[“$”,“$L5”,null,{“parallelRouterKey”:“children”,“segmentPath”:[“children”],“error”:“$undefined”,“errorStyles”:“$undefined”,“loading”:“$undefined”,“loadingStyles”:“$undefined”,“hasLoading”:false,“template”:[“$”,“$L6”,null,{}],“templateStyles”:“$undefined”,“notFound”:“$undefined”,“notFoundStyles”:“$undefined”,“childProp”:{“current”:[“$L7”,null],“segment”:“PAGE”},“styles”:}]}]}]}],null]
3:[[“$”,“meta”,“0”,{“charSet”:“utf-8”}],[“$”,“title”,“1”,{“children”:“BB&S America”}],[“$”,“meta”,“2”,{“name”:“description”,“content”:“BB&S: Lighting People”}],[“$”,“meta”,“3”,{“name”:“viewport”,“content”:“width=device-width, initial-scale=1”}],[“$”,“link”,“4”,{“rel”:“icon”,“href”:“/icon.ico?764099c56c5f0c7b”,“type”:“image/x-icon”,“sizes”:“any”}]]
8:I{“id”:2422,“chunks”:[“370:static/chunks/370-f39690e4467614fc.js”,“265:static/chunks/265-d89d3b7be59b327b.js”,“79:static/chunks/79-f85e708e9ee6bb7d.js”,“955:static/chunks/app/(pages)/products/edit/[slug]/page-2ee4c9b06c47ab1a.js”],“name”:“”,“async”:false}
9:I{“id”:9613,“chunks”:[“370:static/chunks/370-f39690e4467614fc.js”,“931:static/chunks/app/page-d533fd190c9a85df.js”],“name”:“”,“async”:false}
7:[“$”,“div”,null,{“className”:“grid grid–no-navbar”,“children”:[[“$”,“$L8”,null,{“background”:“nav–transparent”,“overlay”:true,“theme”:“nav–light”}],[“$”,“main”,null,{“className”:“home-page”,“children”:[“$”,“$L9”,null,{“heroContent”:{“id”:1,“created_at”:“2023-09-12T23:46:36.473Z”,“button_text”:“View Catalog”,“header_text”:“Lighting Aliens”,“href”:“/categories/”,“images”:[{“byteSize”:5388839,“filename”:“1-TV2-News-08.JPG”,“id”:164,“url”:“http://api.carterbacon.com/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBYVE9IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--ee3e4608cd92a86b56911b32bfd37149b41c56f2/1-TV2-News-08.JPG"},{“byteSize”:544700,“filename”:“2-ceiling.jpeg”,“id”:165,“url”:“http://api.carterbacon.com/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBYVU9IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--e4755419aed4a9ef49da9a28e1e0146e2f7ea8f6/2-ceiling.jpeg”},{“byteSize”:376098,“filename”:“3-concert-house.jpeg”,“id”:166,“url”:“http://api.carterbacon.com/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBYVk9IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--345652dbcf467029ec8173581bfb75a0120e4628/3-concert-house.jpeg”},{“byteSize”:378048,“filename”:"4-Premiere League uStudio.jpeg”,“id”:167,“url”:“http://api.carterbacon.com/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBYWM9IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--2831c6303e6cb35839eb65cb2cbdec11fc8fe27a/4-Premiere%20League%20uStudio.jpeg"},{“byteSize”:772082,“filename”:“5-Beamlight_-2.jpeg”,“id”:168,“url”:“http://api.carterbacon.com/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBYWc9IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--69b3247401f337e185fe9f55a3d5e6b910be8c93/5-Beamlight_-2.jpeg”}]}}]}],[“$”,“footer”,null,{“className”:“footer”,“children”:"© 2023 BB&S America”}]]}]