ShipDesk
Task Manager
ShipDesk
Progress
0%
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.jsadd S3 image domains, API proxy rewrites
30 min
Copy tailwind.config.jsidentical, just update content paths
5 min
Create .env.localrename all VITE_ vars to NEXT_PUBLIC_
10 min
Install all shadcn componentsusing the batch command below
10 min
Folder Structure — Copy These Exactly
Copy src/components/→ components/ — works as-is
2 min
Copy src/store/→ store/ — add 'use client' as line 1
10 min
Copy src/utils/→ utils/ — unchanged
2 min
Copy src/assets/→ public/assets/
2 min
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