Skip to content

Commit c6fb433

Browse files
committed
refactor: correct imports
1 parent 4a9250a commit c6fb433

File tree

19 files changed

+23
-26
lines changed

19 files changed

+23
-26
lines changed

Dockerfile

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,11 @@
22
FROM node:20-alpine AS base
33
WORKDIR /app
44
COPY package*.json ./
5-
6-
# --- Dependencies layer ---
7-
FROM node:20-alpine AS deps
8-
WORKDIR /app
9-
COPY package*.json ./
105
RUN npm install --frozen-lockfile
116

127
# --- Build layer ---
138
FROM node:20-alpine AS builder
149
WORKDIR /app
15-
1610
COPY --from=deps /app/node_modules ./node_modules
1711
COPY . .
1812
RUN npx prisma generate
@@ -24,11 +18,14 @@ WORKDIR /app
2418

2519
ENV NODE_ENV=production
2620

21+
# Install production deps
22+
COPY package*.json ./
23+
RUN npm install --omit=dev --frozen-lockfile
24+
2725
# Copy only what’s needed
2826
COPY --from=builder /app/public ./public
2927
COPY --from=builder /app/.next ./.next
30-
COPY --from=builder /app/node_modules ./node_modules
31-
COPY --from=builder /app/package*.json ./
28+
COPY --from=builder /app/node_modules/.prisma ./node_modules/.prisma
3229

3330
EXPOSE 3000
3431
CMD ["npm", "start"]

src/app/(auth)/login/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { signIn, useSession } from "next-auth/react";
55
import { useRouter } from "next/navigation";
66
import Link from "next/link";
77
import toast from "react-hot-toast";
8-
import { motion } from "framer-motion";
8+
import { motion } from "motion/react";
99
import { Mail, Lock, Loader2, ArrowRight } from "lucide-react";
1010

1111
export default function LoginPage() {

src/app/(auth)/signup/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { useRouter } from "next/navigation";
55
import { signIn, useSession } from "next-auth/react";
66
import Link from "next/link";
77
import toast from "react-hot-toast";
8-
import { motion } from "framer-motion";
8+
import { motion } from "motion/react";
99
import { Mail, Lock, User, Loader2, ArrowRight } from "lucide-react";
1010

1111
export default function SignupPage() {

src/app/contact/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import Link from "next/link";
44
import HomeNavbar from "@/components/home/HomeNavbar";
55
import Footer from "@/components/Footer";
6-
import { motion } from "framer-motion";
6+
import { motion } from "motion/react";
77
import { Send, Mail, User, MessageSquare } from "lucide-react";
88

99
export default function ContactPage() {

src/app/faq/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Footer from "@/components/Footer";
44
import HomeNavbar from "@/components/home/HomeNavbar";
55
import { Plus } from "lucide-react";
66
import { useState } from "react";
7-
import { motion, AnimatePresence } from "framer-motion";
7+
import { motion, AnimatePresence } from "motion/react";
88

99
const faqs = [
1010
{

src/app/features/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
PlayCircle,
1616
} from "lucide-react";
1717
import Footer from "@/components/Footer";
18-
import { motion } from "framer-motion";
18+
import { motion } from "motion/react";
1919

2020
export default function FeaturesPage() {
2121
const features = [

src/app/languages/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import Footer from "@/components/Footer";
44
import HomeNavbar from "@/components/home/HomeNavbar";
5-
import { motion } from "framer-motion";
5+
import { motion } from "motion/react";
66

77
const languages = [
88
{

src/app/not-found.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import Link from "next/link";
44
import { ArrowLeft, SearchX } from "lucide-react";
5-
import { motion } from "framer-motion";
5+
import { motion } from "motion/react";
66

77
export default function NotFound() {
88
return (

src/app/privacy/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import Footer from "@/components/Footer";
44
import HomeNavbar from "@/components/home/HomeNavbar";
5-
import { motion } from "framer-motion";
5+
import { motion } from "motion/react";
66

77
export default function PrivacyPage() {
88
return (

src/app/roadmap/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import Footer from "@/components/Footer";
44
import HomeNavbar from "@/components/home/HomeNavbar";
5-
import { motion } from "framer-motion";
5+
import { motion } from "motion/react";
66
import { CheckCircle2, CircleDashed, Clock, GitCommit } from "lucide-react";
77

88
const roadmap = [

0 commit comments

Comments
 (0)