bigcommerce / b2b-buyer-portal

B2B Buyer Portal - BigCommerce B2B Edition
MIT License
26 stars 24 forks source link

"Deploying the project"GET https://br.storage.bunnycdn.com/assets/react-setup-CAzFZYyQ.js net::ERR_ABORTED 401 (Unauthorized) #44

Closed pocimadigital-sergio closed 4 months ago

pocimadigital-sergio commented 4 months ago

Type: Implementation error

Summary: Unable to access URLs declared in my index.*.js when deploying the "b2b-buyer-portal".

Expected Behavior: I expect that the URLs declared in index.*.js (listed below) should be accessible and loaded correctly:

https://br.storage.bunnycdn.com/assets/react-setup-CAzFZYyQ.js
https://br.storage.bunnycdn.com/assets/b3Logger-CMQiGC3f.js
https://br.storage.bunnycdn.com/assets/react-setup-C6kNScU8.css

Actual Behavior: The URLs declared in index.*.js are not being accessed or loaded correctly by the application.

Steps to Reproduce:

"Deploying the project" Deploy the "b2b-buyer-portal": yarn build:production Create a footer script. Create a header script. "Replace with the URL where your build is hosted, and with its respective values. Replace the * in the file names with the generated hash from the build step."

line of index.*.js: const vitefileDeps = [ "https://br.storage.bunnycdn.com/assets/react-setup-CAzFZYyQ.js", "https://br.storage.bunnycdn.com/assets/b3Logger-CMQiGC3f.js", "https://br.storage.bunnycdn.com/assets/react-setup-C6kNScU8.css" ];

I have loaded my "dist" manually, since when running yarn build:production it does not save it in my VITE_ASSETS_ABSOLUTE_PATH, maybe that is related?

Screenshots/Screen Recordings: image