{"id":41040,"date":"2024-11-06T02:46:23","date_gmt":"2024-11-06T02:46:23","guid":{"rendered":"https:\/\/atmokpo.com\/w\/?p=41040"},"modified":"2024-11-26T06:37:45","modified_gmt":"2024-11-26T06:37:45","slug":"48-next-js%ec%99%80-nest-js%eb%a5%bc-%eb%b0%b0%ed%8f%ac%ed%95%98%eb%8a%94-%eb%b0%a9%eb%b2%95-%ed%99%98%ea%b2%bd%eb%b3%80%ec%88%98-%ec%84%a4%ec%a0%95%ea%b3%bc-%eb%b9%8c%eb%93%9c-%ec%b5%9c%ec%a0%81","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/41040\/","title":{"rendered":"48.Next.js\uc640 Nest.js\ub97c \ubc30\ud3ec\ud558\ub294 \ubc29\ubc95, \ud658\uacbd\ubcc0\uc218 \uc124\uc815\uacfc \ube4c\ub4dc \ucd5c\uc801\ud654 \ubc29\ubc95"},"content":{"rendered":"<p><body><\/p>\n<h2>1. \uc11c\ub860<\/h2>\n<p>\ubaa8\ub358 \uc6f9 \uac1c\ubc1c\uc5d0\uc11c \uc8fc\ubaa9\ubc1b\uace0 \uc788\ub294 Next.js\uc640 Nest.js\ub294 \uac01\uac01 React\uc640 Node.js\uc758 \uac15\ub825\ud55c \ub3c4\uad6c\uc785\ub2c8\ub2e4. Next.js\ub294 \uc11c\ubc84 \uc0ac\uc774\ub4dc \ub80c\ub354\ub9c1(SSR)\uacfc \uc815\uc801 \uc0ac\uc774\ud2b8 \uc0dd\uc131(SSG)\uc744 \uc9c0\uc6d0\ud558\ub294 React \ud504\ub808\uc784\uc6cc\ud06c\uc774\uba70, Nest.js\ub294 \ud6a8\uc728\uc801\uc778 \uc11c\ubc84 \uc0ac\uc774\ub4dc \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \ub9cc\ub4e4 \uc218 \uc788\ub3c4\ub85d \ub3d5\ub294 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 Next.js\uc640 Nest.js \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \ubc30\ud3ec\ud558\ub294 \ubc29\ubc95, \ud658\uacbd\ubcc0\uc218 \uc124\uc815, \ube4c\ub4dc \ucd5c\uc801\ud654 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>2. Next.js \ubc30\ud3ec\ud558\uae30<\/h2>\n<h3>2.1. Next.js \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \ube4c\ub4dc\ud558\uae30<\/h3>\n<p>Next.js \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \ubc30\ud3ec\ud558\uae30 \uc804\uc5d0 \uba3c\uc800 \ube4c\ub4dc\ud574\uc57c \ud569\ub2c8\ub2e4. \ubc30\ud3ec \uc2dc \ube4c\ub4dc \ubc84\uc804\uc744 \uc0dd\uc131\ud558\uae30 \uc704\ud574 \ub2e4\uc74c \uba85\ub839\uc5b4\ub97c \uc2e4\ud589\ud569\ub2c8\ub2e4:<\/p>\n<pre><code>npm run build<\/code><\/pre>\n<p>\uc774 \uba85\ub839\uc5b4\ub97c \ud1b5\ud574 <code>.next<\/code> \ub514\ub809\ud130\ub9ac\uc5d0 \ucd5c\uc801\ud654\ub41c \ube4c\ub4dc\uac00 \uc0dd\uc131\ub429\ub2c8\ub2e4. \uc774 \ube4c\ub4dc\ub97c \uc11c\ubc84\uc5d0 \ubc30\ud3ec\ud558\uc5ec \uc2e4\uc81c \uc11c\ube44\uc2a4\ub97c \uc81c\uacf5\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>2.2. Next.js \ubc30\ud3ec \ubc29\ubc95<\/h3>\n<h4>2.2.1. Vercel\uc744 \uc0ac\uc6a9\ud55c \ubc30\ud3ec<\/h4>\n<p>Next.js\ub294 Vercel\uc774 \ub9cc\ub4e0 \ud504\ub808\uc784\uc6cc\ud06c\uc774\ubbc0\ub85c, Vercel\uc744 \ud1b5\ud574 \ubc30\ud3ec\ud558\ub294 \uac83\uc774 \uac00\uc7a5 \uac04\ub2e8\ud569\ub2c8\ub2e4. Vercel\uc5d0 \ud68c\uc6d0\uac00\uc785\ud55c \ud6c4 \uc0c8\ub85c\uc6b4 \ud504\ub85c\uc81d\ud2b8\ub97c \uc0dd\uc131\ud558\uace0 GitHub \ub610\ub294 GitLab \ub808\ud3ec\uc9c0\ud1a0\ub9ac\ub97c \uc120\ud0dd\ud558\uc138\uc694. Vercel\uc740 \uc790\ub3d9\uc73c\ub85c \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac10\uc9c0\ud558\uace0 \ubc30\ud3ec\ud560 \uc900\ube44\ub97c \ud569\ub2c8\ub2e4.<\/p>\n<h4>2.2.2. \ub137\ub9ac\ud30c\uc774(Netlify) \uc0ac\uc6a9\ud558\uae30<\/h4>\n<p>\ub137\ub9ac\ud30c\uc774\ub294 \uc815\uc801 \uc0ac\uc774\ud2b8\uc640 \uc11c\ubc84\ub9ac\uc2a4 \uae30\ub2a5\uc744 \uac16\ucd98 \uc778\uae30 \uc788\ub294 \ud638\uc2a4\ud305 \uc11c\ube44\uc2a4\uc785\ub2c8\ub2e4. Netlify \ubc84\ud2bc\uc744 \ud074\ub9ad\ud558\uc5ec \uc5f0\uacb0\ud55c \ud6c4, Build Command\ub97c <code>npm run build<\/code>, Publish Directory\ub97c <code>out<\/code>\ub85c \uc124\uc815\ud55c \ud6c4 \ubc30\ud3ec\ub97c \uc2dc\uc791\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h4>2.2.3. AWS\uc5d0 \ubc30\ud3ec\ud558\uae30<\/h4>\n<p>AWS Elastic Beanstalk\ub97c \uc0ac\uc6a9\ud574 Next.js \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \ubc30\ud3ec\ud560 \uc218\ub3c4 \uc788\uc2b5\ub2c8\ub2e4. Elastic Beanstalk \ud658\uacbd\uc744 \uc0dd\uc131\ud558\uace0, Docker \ub610\ub294 Node.js \ud50c\ub7ab\ud3fc\uc744 \uc120\ud0dd\ud558\uc5ec \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc5c5\ub85c\ub4dc\ud558\uba74 \ub429\ub2c8\ub2e4.<\/p>\n<h2>3. Nest.js \ubc30\ud3ec\ud558\uae30<\/h2>\n<h3>3.1. Nest.js \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \ube4c\ub4dc\ud558\uae30<\/h3>\n<p>Nest.js \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \ubc30\ud3ec\ud558\uae30 \uc704\ud574 \ub2e4\uc74c \uba85\ub839\uc5b4\ub97c \uc0ac\uc6a9\ud574 \ube4c\ub4dc\ud569\ub2c8\ub2e4:<\/p>\n<pre><code>npm run build<\/code><\/pre>\n<p>\uc774 \uba85\ub839\uc5b4\ub294 <code>dist<\/code> \ub514\ub809\ud130\ub9ac\uc5d0 \ucef4\ud30c\uc77c\ub41c JavaScript \ud30c\uc77c\uc744 \uc0dd\uc131\ud569\ub2c8\ub2e4.<\/p>\n<h3>3.2. Nest.js \ubc30\ud3ec \ubc29\ubc95<\/h3>\n<h4>3.2.1. Heroku\ub97c \ud1b5\ud55c \ubc30\ud3ec<\/h4>\n<p>Heroku\ub294 \ube60\ub974\uac8c \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \ubc30\ud3ec\ud558\uae30\uc5d0 \uc801\ud569\ud55c \ud074\ub77c\uc6b0\ub4dc \ud50c\ub7ab\ud3fc\uc785\ub2c8\ub2e4. Heroku CLI\ub97c \uc0ac\uc6a9\ud574 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc0dd\uc131\ud55c \ud6c4, <code>git push heroku main<\/code> \uba85\ub839\uc5b4\ub85c \ubc30\ud3ec\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h4>3.2.2. AWS EC2\uc5d0 \ubc30\ud3ec\ud558\uae30<\/h4>\n<p>AWS EC2 \uc778\uc2a4\ud134\uc2a4\uc5d0 Nest.js \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \ubc30\ud3ec\ud558\ub824\uba74 Node.js \ubc0f Git\uc744 \uc124\uce58\ud558\uace0, \ud544\uc694\ud55c \uc885\uc18d\uc131\uc744 \uc124\uce58\ud55c \ud6c4, \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \ud074\ub860\ud558\uc5ec \uc2e4\ud589\ud569\ub2c8\ub2e4.<\/p>\n<h4>3.2.3. Docker\ub97c \uc0ac\uc6a9\ud55c \ubc30\ud3ec<\/h4>\n<p>Nest.js \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 Docker \ucee8\ud14c\uc774\ub108\ub85c \uac10\uc2f8\uc11c \ubc30\ud3ec\ud558\uba74, \ud658\uacbd\uc5d0 \uad6c\uc560\ubc1b\uc9c0 \uc54a\uace0 \uc2e4\ud589\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. Dockerfile\uc744 \uc791\uc131\ud55c \ud6c4, <code>docker build<\/code> \uba85\ub839\uc5b4\ub85c \uc774\ubbf8\uc9c0\ub97c \uc0dd\uc131\ud558\uace0, <code>docker run<\/code> \uba85\ub839\uc5b4\ub85c \ucee8\ud14c\uc774\ub108\ub97c \uc2e4\ud589\ud569\ub2c8\ub2e4.<\/p>\n<h2>4. \ud658\uacbd\ubcc0\uc218 \uc124\uc815<\/h2>\n<h3>4.1. Next.js \ud658\uacbd\ubcc0\uc218 \uc124\uc815<\/h3>\n<p>Next.js\uc5d0\uc11c\ub294 <code>.env.local<\/code> \ud30c\uc77c\uc744 \uc0ac\uc6a9\ud558\uc5ec \ube44\ubc00 \uc815\ubcf4\ub97c \uc800\uc7a5\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4, API \ud0a4\ub098 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5f0\uacb0 \ubb38\uc790\uc5f4\uc744 \uc815\uc758\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4:<\/p>\n<pre><code>DATABASE_URL=my_database_url<\/code><\/pre>\n<p>\ud658\uacbd\ubcc0\uc218\ub294 <code>process.env.DATABASE_URL<\/code>\uc744 \ud1b5\ud574 \uc811\uadfc\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. Next.js\ub294 \ud658\uacbd\ubcc0\uc218\uac00 <code>NEXT_PUBLIC_<\/code>\ub85c \uc2dc\uc791\ud558\uc9c0 \uc54a\ub294 \uacbd\uc6b0 \ud074\ub77c\uc774\uc5b8\ud2b8 \uc0ac\uc774\ub4dc\uc5d0\uc11c \uc811\uadfc\ud560 \uc218 \uc5c6\ub3c4\ub85d \uc124\uc815\ud569\ub2c8\ub2e4.<\/p>\n<h3>4.2. Nest.js \ud658\uacbd\ubcc0\uc218 \uc124\uc815<\/h3>\n<p>Nest.js\uc5d0\uc11c\ub294 <code>@nestjs\/config<\/code> \ud328\ud0a4\uc9c0\ub97c \uc0ac\uc6a9\ud558\uba74 \ud658\uacbd\ubcc0\uc218 \uad00\ub9ac\uac00 \ud3b8\ub9ac\ud574\uc9d1\ub2c8\ub2e4. \ub2e4\uc74c\uacfc \uac19\uc774 \uc124\uce58\ud558\uace0 \uc124\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4:<\/p>\n<pre><code>npm install @nestjs\/config<\/code><\/pre>\n<p>\uadf8 \ud6c4, <code>ConfigModule<\/code>\uc744 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \ubaa8\ub4c8\uc5d0 \ucd94\uac00\ud558\uace0, <code>.env<\/code> \ud30c\uc77c\uc744 \uc0ac\uc6a9\ud558\uc5ec \ud658\uacbd\ubcc0\uc218\ub97c \uc124\uc815\ud569\ub2c8\ub2e4:<\/p>\n<pre><code>DATABASE_URL=my_database_url<\/code><\/pre>\n<p>\uadf8 \ud6c4, <code>this.configService.get('DATABASE_URL')<\/code>\ub97c \uc0ac\uc6a9\ud574 \ud658\uacbd\ubcc0\uc218\uc5d0 \uc811\uadfc\ud569\ub2c8\ub2e4.<\/p>\n<h2>5. \ube4c\ub4dc \ucd5c\uc801\ud654 \ubc29\ubc95<\/h2>\n<h3>5.1. Next.js \ube4c\ub4dc \ucd5c\uc801\ud654<\/h3>\n<p>Next.js\uc758 \uc131\ub2a5\uc744 \ucd5c\uc801\ud654\ud558\uae30 \uc704\ud574 \uba87 \uac00\uc9c0 \ubc29\ubc95\uc774 \uc788\uc2b5\ub2c8\ub2e4:<\/p>\n<ul>\n<li><strong>\uc11c\ubc84 \ucef4\ud3ec\ub10c\ud2b8\uc640 \ud074\ub77c\uc774\uc5b8\ud2b8 \ucef4\ud3ec\ub10c\ud2b8\ub97c \uad6c\ubd84:<\/strong> \uc11c\ubc84 \uc0ac\uc774\ub4dc \ub80c\ub354\ub9c1\uc744 \ud544\uc694\ub85c \ud558\uc9c0 \uc54a\ub294 \ucef4\ud3ec\ub10c\ud2b8\ub4e4\uc740 \ud074\ub77c\uc774\uc5b8\ud2b8 \ucef4\ud3ec\ub10c\ud2b8\ub85c \ubcc0\ud658\ud558\uc5ec \uc131\ub2a5\uc744 \uadf9\ub300\ud654\ud569\ub2c8\ub2e4.<\/li>\n<li><strong>\uc774\ubbf8\uc9c0 \ucd5c\uc801\ud654:<\/strong> <code>next\/image<\/code> \ucef4\ud3ec\ub10c\ud2b8\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc774\ubbf8\uc9c0\uc758 \ud06c\uae30\ub97c \uc790\ub3d9\uc73c\ub85c \uc870\uc815\ud558\uace0 \uc6f9 \ud37c\ud3ec\uba3c\uc2a4\ub97c \ud5a5\uc0c1\uc2dc\ud0b5\ub2c8\ub2e4.<\/li>\n<li><strong>\ub77c\uc6b0\ud305 \ucd5c\uc801\ud654:<\/strong> \ub3d9\uc801 \ub77c\uc6b0\ud305\uc744 \uc0ac\uc6a9\ud558\uace0, \ud544\uc694\ud558\uc9c0 \uc54a\uc740 \ud398\uc774\uc9c0\ub294 <code>next\/link<\/code>\ub97c \uc0ac\uc6a9\ud558\uc5ec \ud544\uc694 \uc2dc\uc5d0\ub9cc \ub85c\ub4dc\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h3>5.2. Nest.js \ube4c\ub4dc \ucd5c\uc801\ud654<\/h3>\n<p>Nest.js \uc571\uc758 \uc131\ub2a5 \ucd5c\uc801\ud654\ub97c \uc704\ud55c \uc804\ub7b5\uc73c\ub85c\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:<\/p>\n<ul>\n<li><strong>AOT \ucef4\ud30c\uc77c \uc0ac\uc6a9:<\/strong> Ahead-of-Time \ucef4\ud30c\uc77c\uc744 \uc0ac\uc6a9\ud558\uba74 \ub7f0\ud0c0\uc784 \uc131\ub2a5\uc744 \ud5a5\uc0c1\uc2dc\ud0a4\uace0 \ube4c\ub4dc \ud06c\uae30\ub97c \uc904\uc77c \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<li><strong>\ubaa8\ub4c8 \ubd84\ud560:<\/strong> \ub300\uaddc\ubaa8 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c \ubaa8\ub4c8\uc744 \uc798 \ubd84\ub9ac\ud574 \ucf54\ub4dc\uc758 \uac00\ub3c5\uc131\uacfc \uc7ac\uc0ac\uc6a9\uc131\uc744 \ub192\uc785\ub2c8\ub2e4.<\/li>\n<li><strong>\uce90\uc2f1 \uc804\ub7b5:<\/strong> \ub370\uc774\ud130\ubca0\uc774\uc2a4 \ucffc\ub9ac \uacb0\uacfc\ub97c \uce90\uc2dc\ud558\uc5ec \uc131\ub2a5\uc744 \ucd5c\uc801\ud654\ud569\ub2c8\ub2e4. Redis\uc640 \uac19\uc740 \uce90\uc2f1 \uc194\ub8e8\uc158\uc744 \uc0ac\uc6a9\ud558\ub294 \uac83\uc774 \uc88b\uc2b5\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h2>6. \uacb0\ub860<\/h2>\n<p>Next.js\uc640 Nest.js\ub294 \uac01\uac01 \ud074\ub77c\uc774\uc5b8\ud2b8 \uc0ac\uc774\ub4dc\uc640 \uc11c\ubc84 \uc0ac\uc774\ub4dc\uc5d0\uc11c \ub9e4\ub825\uc801\uc778 \uc635\uc158\uc785\ub2c8\ub2e4. \uc774 \uac15\uc88c\ub97c \ud1b5\ud574 \ub450 \ud504\ub808\uc784\uc6cc\ud06c\uc758 \ubc30\ud3ec \ubc29\ubc95, \ud658\uacbd\ubcc0\uc218 \uc124\uc815, \ube4c\ub4dc \ucd5c\uc801\ud654 \ubc29\ubc95\uc744 \uc0b4\ud3b4\ubcf4\uc558\uc2b5\ub2c8\ub2e4. \uc774\ub97c \ud1b5\ud574 \ud6a8\uc728\uc801\uc774\uace0 \uc131\ub2a5\uc774 \ub6f0\uc5b4\ub09c \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud558\ub294 \ub370 \ud070 \ub3c4\uc6c0\uc774 \ub418\uae30\ub97c \ubc14\ub78d\ub2c8\ub2e4.<\/p>\n<footer>\n<p>\uc800\uc790: \uc870\uad11\ud615<\/p>\n<p>\ub0a0\uc9dc: [2023\ub144 10\uc6d4 1\uc77c]<\/p>\n<\/footer>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \uc11c\ub860 \ubaa8\ub358 \uc6f9 \uac1c\ubc1c\uc5d0\uc11c \uc8fc\ubaa9\ubc1b\uace0 \uc788\ub294 Next.js\uc640 Nest.js\ub294 \uac01\uac01 React\uc640 Node.js\uc758 \uac15\ub825\ud55c \ub3c4\uad6c\uc785\ub2c8\ub2e4. Next.js\ub294 \uc11c\ubc84 \uc0ac\uc774\ub4dc \ub80c\ub354\ub9c1(SSR)\uacfc \uc815\uc801 \uc0ac\uc774\ud2b8 \uc0dd\uc131(SSG)\uc744 \uc9c0\uc6d0\ud558\ub294 React \ud504\ub808\uc784\uc6cc\ud06c\uc774\uba70, Nest.js\ub294 \ud6a8\uc728\uc801\uc778 \uc11c\ubc84 \uc0ac\uc774\ub4dc \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \ub9cc\ub4e4 \uc218 \uc788\ub3c4\ub85d \ub3d5\ub294 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 Next.js\uc640 Nest.js \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \ubc30\ud3ec\ud558\ub294 \ubc29\ubc95, \ud658\uacbd\ubcc0\uc218 \uc124\uc815, \ube4c\ub4dc \ucd5c\uc801\ud654 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 2. Next.js \ubc30\ud3ec\ud558\uae30 2.1. Next.js \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \ube4c\ub4dc\ud558\uae30 &hellip; <a href=\"https:\/\/atmokpo.com\/w\/41040\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;48.Next.js\uc640 Nest.js\ub97c \ubc30\ud3ec\ud558\ub294 \ubc29\ubc95, \ud658\uacbd\ubcc0\uc218 \uc124\uc815\uacfc \ube4c\ub4dc \ucd5c\uc801\ud654 \ubc29\ubc95&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[223],"tags":[],"class_list":["post-41040","post","type-post","status-publish","format-standard","hentry","category-nextjs"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>48.Next.js\uc640 Nest.js\ub97c \ubc30\ud3ec\ud558\ub294 \ubc29\ubc95, \ud658\uacbd\ubcc0\uc218 \uc124\uc815\uacfc \ube4c\ub4dc \ucd5c\uc801\ud654 \ubc29\ubc95 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/atmokpo.com\/w\/41040\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"48.Next.js\uc640 Nest.js\ub97c \ubc30\ud3ec\ud558\ub294 \ubc29\ubc95, \ud658\uacbd\ubcc0\uc218 \uc124\uc815\uacfc \ube4c\ub4dc \ucd5c\uc801\ud654 \ubc29\ubc95 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"1. \uc11c\ub860 \ubaa8\ub358 \uc6f9 \uac1c\ubc1c\uc5d0\uc11c \uc8fc\ubaa9\ubc1b\uace0 \uc788\ub294 Next.js\uc640 Nest.js\ub294 \uac01\uac01 React\uc640 Node.js\uc758 \uac15\ub825\ud55c \ub3c4\uad6c\uc785\ub2c8\ub2e4. Next.js\ub294 \uc11c\ubc84 \uc0ac\uc774\ub4dc \ub80c\ub354\ub9c1(SSR)\uacfc \uc815\uc801 \uc0ac\uc774\ud2b8 \uc0dd\uc131(SSG)\uc744 \uc9c0\uc6d0\ud558\ub294 React \ud504\ub808\uc784\uc6cc\ud06c\uc774\uba70, Nest.js\ub294 \ud6a8\uc728\uc801\uc778 \uc11c\ubc84 \uc0ac\uc774\ub4dc \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \ub9cc\ub4e4 \uc218 \uc788\ub3c4\ub85d \ub3d5\ub294 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 Next.js\uc640 Nest.js \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \ubc30\ud3ec\ud558\ub294 \ubc29\ubc95, \ud658\uacbd\ubcc0\uc218 \uc124\uc815, \ube4c\ub4dc \ucd5c\uc801\ud654 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 2. Next.js \ubc30\ud3ec\ud558\uae30 2.1. Next.js \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \ube4c\ub4dc\ud558\uae30 &hellip; \ub354 \ubcf4\uae30 &quot;48.Next.js\uc640 Nest.js\ub97c \ubc30\ud3ec\ud558\ub294 \ubc29\ubc95, \ud658\uacbd\ubcc0\uc218 \uc124\uc815\uacfc \ube4c\ub4dc \ucd5c\uc801\ud654 \ubc29\ubc95&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/41040\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-06T02:46:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T06:37:45+00:00\" \/>\n<meta name=\"author\" content=\"root\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:site\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"root\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/41040\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/41040\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"48.Next.js\uc640 Nest.js\ub97c \ubc30\ud3ec\ud558\ub294 \ubc29\ubc95, \ud658\uacbd\ubcc0\uc218 \uc124\uc815\uacfc \ube4c\ub4dc \ucd5c\uc801\ud654 \ubc29\ubc95\",\"datePublished\":\"2024-11-06T02:46:23+00:00\",\"dateModified\":\"2024-11-26T06:37:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/41040\/\"},\"wordCount\":109,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"nextjs\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/41040\/\",\"url\":\"https:\/\/atmokpo.com\/w\/41040\/\",\"name\":\"48.Next.js\uc640 Nest.js\ub97c \ubc30\ud3ec\ud558\ub294 \ubc29\ubc95, \ud658\uacbd\ubcc0\uc218 \uc124\uc815\uacfc \ube4c\ub4dc \ucd5c\uc801\ud654 \ubc29\ubc95 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-06T02:46:23+00:00\",\"dateModified\":\"2024-11-26T06:37:45+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/41040\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/41040\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/41040\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"48.Next.js\uc640 Nest.js\ub97c \ubc30\ud3ec\ud558\ub294 \ubc29\ubc95, \ud658\uacbd\ubcc0\uc218 \uc124\uc815\uacfc \ube4c\ub4dc \ucd5c\uc801\ud654 \ubc29\ubc95\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/atmokpo.com\/w\/#website\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/atmokpo.com\/w\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"contentUrl\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"width\":400,\"height\":400,\"caption\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\"},\"image\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/bebubo4\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\",\"name\":\"root\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"caption\":\"root\"},\"sameAs\":[\"http:\/\/atmokpo.com\/w\"],\"url\":\"https:\/\/atmokpo.com\/w\/author\/root\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"48.Next.js\uc640 Nest.js\ub97c \ubc30\ud3ec\ud558\ub294 \ubc29\ubc95, \ud658\uacbd\ubcc0\uc218 \uc124\uc815\uacfc \ube4c\ub4dc \ucd5c\uc801\ud654 \ubc29\ubc95 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/atmokpo.com\/w\/41040\/","og_locale":"ko_KR","og_type":"article","og_title":"48.Next.js\uc640 Nest.js\ub97c \ubc30\ud3ec\ud558\ub294 \ubc29\ubc95, \ud658\uacbd\ubcc0\uc218 \uc124\uc815\uacfc \ube4c\ub4dc \ucd5c\uc801\ud654 \ubc29\ubc95 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"1. \uc11c\ub860 \ubaa8\ub358 \uc6f9 \uac1c\ubc1c\uc5d0\uc11c \uc8fc\ubaa9\ubc1b\uace0 \uc788\ub294 Next.js\uc640 Nest.js\ub294 \uac01\uac01 React\uc640 Node.js\uc758 \uac15\ub825\ud55c \ub3c4\uad6c\uc785\ub2c8\ub2e4. Next.js\ub294 \uc11c\ubc84 \uc0ac\uc774\ub4dc \ub80c\ub354\ub9c1(SSR)\uacfc \uc815\uc801 \uc0ac\uc774\ud2b8 \uc0dd\uc131(SSG)\uc744 \uc9c0\uc6d0\ud558\ub294 React \ud504\ub808\uc784\uc6cc\ud06c\uc774\uba70, Nest.js\ub294 \ud6a8\uc728\uc801\uc778 \uc11c\ubc84 \uc0ac\uc774\ub4dc \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \ub9cc\ub4e4 \uc218 \uc788\ub3c4\ub85d \ub3d5\ub294 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 Next.js\uc640 Nest.js \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \ubc30\ud3ec\ud558\ub294 \ubc29\ubc95, \ud658\uacbd\ubcc0\uc218 \uc124\uc815, \ube4c\ub4dc \ucd5c\uc801\ud654 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 2. Next.js \ubc30\ud3ec\ud558\uae30 2.1. Next.js \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \ube4c\ub4dc\ud558\uae30 &hellip; \ub354 \ubcf4\uae30 \"48.Next.js\uc640 Nest.js\ub97c \ubc30\ud3ec\ud558\ub294 \ubc29\ubc95, \ud658\uacbd\ubcc0\uc218 \uc124\uc815\uacfc \ube4c\ub4dc \ucd5c\uc801\ud654 \ubc29\ubc95\"","og_url":"https:\/\/atmokpo.com\/w\/41040\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-06T02:46:23+00:00","article_modified_time":"2024-11-26T06:37:45+00:00","author":"root","twitter_card":"summary_large_image","twitter_creator":"@bebubo4","twitter_site":"@bebubo4","twitter_misc":{"\uae00\uc4f4\uc774":"root","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"1\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/41040\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/41040\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"48.Next.js\uc640 Nest.js\ub97c \ubc30\ud3ec\ud558\ub294 \ubc29\ubc95, \ud658\uacbd\ubcc0\uc218 \uc124\uc815\uacfc \ube4c\ub4dc \ucd5c\uc801\ud654 \ubc29\ubc95","datePublished":"2024-11-06T02:46:23+00:00","dateModified":"2024-11-26T06:37:45+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/41040\/"},"wordCount":109,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["nextjs"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/41040\/","url":"https:\/\/atmokpo.com\/w\/41040\/","name":"48.Next.js\uc640 Nest.js\ub97c \ubc30\ud3ec\ud558\ub294 \ubc29\ubc95, \ud658\uacbd\ubcc0\uc218 \uc124\uc815\uacfc \ube4c\ub4dc \ucd5c\uc801\ud654 \ubc29\ubc95 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-06T02:46:23+00:00","dateModified":"2024-11-26T06:37:45+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/41040\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/41040\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/41040\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"48.Next.js\uc640 Nest.js\ub97c \ubc30\ud3ec\ud558\ub294 \ubc29\ubc95, \ud658\uacbd\ubcc0\uc218 \uc124\uc815\uacfc \ube4c\ub4dc \ucd5c\uc801\ud654 \ubc29\ubc95"}]},{"@type":"WebSite","@id":"https:\/\/atmokpo.com\/w\/#website","url":"https:\/\/atmokpo.com\/w\/","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","description":"","publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/atmokpo.com\/w\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/atmokpo.com\/w\/#organization","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","url":"https:\/\/atmokpo.com\/w\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/","url":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","contentUrl":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","width":400,"height":400,"caption":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8"},"image":{"@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/bebubo4"]},{"@type":"Person","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7","name":"root","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","caption":"root"},"sameAs":["http:\/\/atmokpo.com\/w"],"url":"https:\/\/atmokpo.com\/w\/author\/root\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/41040","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/comments?post=41040"}],"version-history":[{"count":2,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/41040\/revisions"}],"predecessor-version":[{"id":43045,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/41040\/revisions\/43045"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=41040"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=41040"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=41040"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}