ℹ️ Objective
🔒 Steps to Follow

Bucket name: copia-fe
S3 bucket names are globally unique. If the name `copia-fe` is already in use, you will need to add characters or numbers to make it unique (e.g., `copia-fe-haminhtri-0309`).
AWS Region: Choose the region you are working in (e.g., ap-southeast-1).
Block Public Access settings for this bucket:


npm run build or yarn build.copia-fe bucket in the S3 console.
copia-fe bucket, switch to the Properties tab.index.htmlindex.html
**Why set both Index and Error documents to `index.html`?**
React uses client-side routing (React Router). If a user accesses a subpage directly (e.g., `/login` or `/cart`), S3 will not find a corresponding physical folder or file and will generate a 404 or 403 error. By routing all errors to `index.html`, S3 returns the main entry point, allowing React Router to intercept the URL path and render the correct subpage on the client side without throwing errors.
