01
Project Configuration
next.config, Tailwind, shadcn init, environment variables, folder structure
Week 12–3 days
Phase Progress0/8 tasks · 0%
Configuration Files
Create next.config.js — add S3 image domains, API proxy rewrites
Copy tailwind.config.js — identical, just update content paths
Create .env.local — rename all VITE_ vars to NEXT_PUBLIC_
Install all shadcn components — using the batch command below
Folder Structure — Copy These Exactly
Copy src/components/ — → components/ — works as-is
Copy src/store/ — → store/ — add 'use client' as line 1
Copy src/utils/ — → utils/ — unchanged
Copy src/assets/ — → public/assets/
next.config.js
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
remotePatterns: [
{ protocol: 'https', hostname: '*.amazonaws.com' },
],
},
async rewrites() {
return [
{ source: '/api/:path*', destination: `${process.env.NEXT_PUBLIC_API_URL}/api/:path*` },
]
},
}
module.exports = nextConfig