๋ฐ˜์‘ํ˜•

nextjs,tailwindcss,vercel 73

vercel์— git add ์•ˆํ•˜๊ณ  ๋ฐ”๋กœ ๋ฐฐํฌํ•˜๋Š”๋ฒ•

vercel์ด๋ผ๋Š” ๋ช…๋ น์–ด๋ฅผ ํ„ฐ๋ฏธ๋„์— ์ž…๋ ฅํ•˜๋Š” ๊ฒƒ๋งŒ์œผ๋กœ๋„ ๋ฐ”๋กœ ๋ฐฐํฌ๊ฐ€ ๊ฐ€๋Šฅํ•˜๊ฐ€ git add , git commit, git push ์•ˆํ•ด๋„๋จ!Vercel CLI ์„ค์น˜: npm (Node Package Manager)์„ ์‚ฌ์šฉํ•˜์—ฌ ์ „์—ญ์œผ๋กœ Vercel CLI๋ฅผ ์„ค์น˜ํ•ฉ๋‹ˆ๋‹ค. ํ„ฐ๋ฏธ๋„์—์„œ ๋‹ค์Œ ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ํ•˜์„ธ์š”: npm install -g vercel์„ค์น˜ ํ™•์ธ: ์„ค์น˜๊ฐ€ ์™„๋ฃŒ๋˜๋ฉด ๋‹ค์Œ ๋ช…๋ น์–ด๋กœ Vercel CLI๊ฐ€ ์ œ๋Œ€๋กœ ์„ค์น˜๋˜์—ˆ๋Š”์ง€ ํ™•์ธํ•ฉ๋‹ˆ๋‹ค: vercel --version๋ฒ„์ „ ์ •๋ณด๊ฐ€ ํ‘œ์‹œ๋˜๋ฉด ์„ค์น˜๊ฐ€ ์„ฑ๊ณต์ ์œผ๋กœ ์™„๋ฃŒ๋œ ๊ฒƒ์ž…๋‹ˆ๋‹ค.Vercel ๊ณ„์ • ์—ฐ๊ฒฐ: ์ด์ œ 'vercel login' ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ Vercel ๊ณ„์ •์— ๋กœ๊ทธ์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค: vercel login๋ธŒ๋ผ์šฐ์ € ์ฐฝ์ด ์—ด๋ฆฌ๋ฉด Vercel ๊ณ„์ •์œผ๋กœ ๋กœ๊ทธ..

nextauth ๊ตฌ๊ธ€ ๋กœ๊ทธ์ธ ๊ตฌํ˜„ ์—๋Ÿฌ Error: This action with HTTP GET is not supported by NextAuth.js

Error: This action with HTTP GET is not supported by NextAuth.jsโœ“ Compiled /api/[...nextauth] in 179ms (2268 modules) GET /api/auth/error 400 in 303ms๊ตฌํ˜„ ์™„๋ฃŒํ›„ ํ…Œ์ŠคํŠธํ•˜๋Š”๋ฐ ์ž๊พธ ์ด๋Ÿฐ ์—๋Ÿฌ๊ฐ€ ๋‚œ๋‹คํ•  ๊ฒƒ ๋‹คํ–ˆ๋Š”๋ฐ ์ž๊พธ ์ € ์ฃผ์†Œ๋กœ ๋“ค์–ด๊ฐ€๋ฉด ์—๋Ÿฌ๊ฐ€ ๋‚˜๋Š” ๊ฒƒ์ด์—ˆ๋‹ค. http://localhost:3000/api/auth/callback ์•Œ๊ณ ๋ณด๋‹ˆsrc/app/api/auth/[...nextauth]/route.ts์ด ๊ฒฝ๋กœ์—ฌ์•ผ ํ•˜๋Š”๋ฐsrc/app/api/[...nextauth]/route.ts ๋กœ ํ•˜๊ณ  ์žˆ์—ˆ๋˜ ๊ฒƒ..auth ํด๋” ๋•Œ๋ฌธ์— 4์‹œ๊ฐ„ ํ—ˆ๋น„ํ–ˆ๋‹ค. ํ•˜ใ…ใ…ใ…ใ…ใ…ใ…ใ…ใ…ใ…ใ…ใ…ใ…ใ…ใ…ใ…ใ…ใ…ใ…ใ…ใ…ใ…ใ…ใ…..

next js ์œผ๋กœ ํ”„๋กœ์ ํŠธ ์ƒ์„ฑํ•ด์„œ vercel ๋ฐฐํฌํ•˜๊ธฐ (git ์„ค์ •๋ฒ•)

next js ์œผ๋กœ ์ดˆ๊ธฐ์— ํ”„๋กœ์ ํŠธ ์„ค์ •ํ•˜๊ณ  ๊ทธ๊ฒƒ์„ github์— ์˜ฌ๋ฆฌ๊ณ , vercel ๋ฐฐํฌํ•˜๋Š” ๊ณผ์ •๊นŒ์ง€ ์ •๋ฆฌํ•˜๊ฒ ๋‹ค. 1. ํ„ฐ๋ฏธ๋„์—์„œ next js ํ”„๋กœ์ ํŠธ ์„ค์น˜npx create-next-app@latest ๋‹ค์Œ์— ๋‚˜์˜ค๋Š” ์‚ฌํ•ญ๋“ค ์ ์ ˆํ•˜๊ฒŒ ์„ค์ •ํ•˜๊ธฐ ,nextjs app router ์‚ฌ์šฉํ•˜๋Š” ๊ธฐ์ค€, project name๋งŒ ์ •ํ•˜๊ณ  ๋‚˜๋จธ์ง€ ๋‹ค ๋””ํดํŠธ๊ฐ’์œผ๋กœํ•˜๊ธฐ What is your project named? my-appWould you like to use TypeScript? No / YesWould you like to use ESLint? No / YesWould you like to use Tailwind CSS? No / YesWould you like your code inside a `src/`..

[๊ตฌ๊ธ€ ํฌ๋กค๋ง] Google Custom Search Engine ID (CSE ID)๋ฅผ ์„ค์ •ํ•˜๋Š” ๋ฐฉ๋ฒ•

Google Custom Search Engine ID (CSE ID)๋ฅผ ์„ค์ •ํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ๋‹จ๊ณ„๋ณ„๋กœ ์„ค๋ช… Google Programmable Search Engine ํŽ˜์ด์ง€ ๋ฐฉ๋ฌธ: https://programmablesearchengine.google.com/cse/all ์— ์ ‘์†ํ•˜์„ธ์š”.์ƒˆ ๊ฒ€์ƒ‰ ์—”์ง„ ์ƒ์„ฑ: "์ƒˆ ๊ฒ€์ƒ‰ ์—”์ง„" ๋ฒ„ํŠผ์„ ํด๋ฆญํ•˜์„ธ์š”.๊ฒ€์ƒ‰ ์—”์ง„ ์„ค์ •:"๊ฒ€์ƒ‰ํ•  ์‚ฌ์ดํŠธ" ํ•„๋“œ์— "www.google.com"์„ ์ž…๋ ฅํ•˜์„ธ์š”."์–ธ์–ด" ์„ค์ •์—์„œ ์›ํ•˜๋Š” ์–ธ์–ด๋ฅผ ์„ ํƒํ•˜์„ธ์š”."์ด๋ฆ„" ํ•„๋“œ์— ๊ฒ€์ƒ‰ ์—”์ง„์˜ ์ด๋ฆ„์„ ์ž…๋ ฅํ•˜์„ธ์š” (์˜ˆ: "News Search")."๋งŒ๋“ค๊ธฐ" ๋ฒ„ํŠผ ํด๋ฆญ: ์„ค์ •์„ ์™„๋ฃŒํ•˜๊ณ  ๊ฒ€์ƒ‰ ์—”์ง„์„ ์ƒ์„ฑํ•˜์„ธ์š”.CSE ID ์ฐพ๊ธฐ:์ƒ์„ฑ๋œ ๊ฒ€์ƒ‰ ์—”์ง„์˜ "์„ค์ •" ํŽ˜์ด์ง€๋กœ ์ด๋™ํ•˜์„ธ์š”."๊ธฐ๋ณธ" ํƒญ์—์„œ "๊ฒ€์ƒ‰ ์—”์ง„ ID..

[์—๋Ÿฌ ํ•ด๊ฒฐ ] Could not connect to any servers in your MongoDB Atlas cluster

MongoDB Atlas ์ ‘์† - network access ๋“ค์–ด๊ฐ€์„œip์ฃผ์†Œ๋ฅผ ๋‚ด๊ป„๋กœ ๋ฐ”๊พธ์–ด์ฃผ๋ฉด๋œ๋‹ค. ๋‚ด ip์ฃผ์†Œ ํ™•์ธ์€ ๊ตฌ๊ธ€์— ip์ฃผ์†Œ ํ™•์ธ ์ด๋ผ๊ณ  ์น˜๋ฉด ๋งŽ์ด ๋‚˜์˜จ๋‹คhttps://findip.kr/ editํ•ด์„œ ๋‚ด ip์ฃผ์†Œ๋ฅผ ๋ณ€๊ฒฝํ•ด์ฃผ๋ฉด ๋

mongodb url password ์ฐพ๊ธฐ (Mongodb atlas)

Mongodb atlas ์—์„œ nextjs ์—์„œ ์ˆ˜ํ–‰ํ•  mongodb url์„ ์ฐพ๋Š” ๋ฒ• ์™ผ์ชฝ ์‚ฌ์ด๋“œ๋ฐ”์—์„œ database access ์ ‘์† database access ์—์„œ ํ˜„์žฌ ์žˆ๋Š” ์–ด๋“œ๋ฏผ ์œ ์ € edit ์„ ํ•˜๊ฑฐ๋‚˜ add new batabase user ๋กœ ์ƒˆ๋กœ์šด ์œ ์ € ์ƒ์„ฑํ•˜๊ธฐ ํ•˜๋‹จ์—์„œ ํŒจ์Šค์›Œ๋“œ ์ƒ์„ฑ  ํŒจ์Šค์›Œ๋“œ๋Š” ์ดํ›„ password์ž๋ฆฌ์— ๋Œ€์ฒดํ•ด์ฃผ๊ณ  ์‚ฌ์šฉํ•˜๋ฉด๋œ๋‹ค. mongodb+srv://{username}:@~~~mongodb.net

ํ•€ํ„ฐ๋ ˆ์ŠคํŠธ์˜ ๋ณด๋“œ์— ์ €์žฅํ•œ ๋ชจ๋“  ์‚ฌ์ง„ ๋‹ค์šด๋กœ๋“œํ•˜๊ธฐ (python url ์‚ฌ์ง„ ๋‹ค์šด)

https://github.com/mikf/gallery-dl GitHub - mikf/gallery-dl: Command-line program to download image galleries and collections from several image hosting sitesCommand-line program to download image galleries and collections from several image hosting sites - mikf/gallery-dlgithub.com url์„ ์ž…๋ ฅํ•ด์„œ ์‚ฌ์ง„์„ ๋‹ค์šด๋ฐ›๋Š” ๋ฐ›๋Š” ์ข‹์€ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๊ฐ€ ์žˆ์–ด์„œ ์†Œ๊ฐœ๋™์ˆฒ ์‚ฐ๋ฆฌ์˜ค ๋””์ž์ธ์ด๋ž‘ ๊ธธ ๋„ํŠธ ๊ฐ๊ฐ ๋ณด๋“œ๋ฅผ ๋งŒ๋“ค์–ด ์ €์žฅํ•˜๊ณ , ํ•œ๋ฒˆ์— ๋‹ค์šด๋ฐ›์œผ๋ ค๊ณ  ํ–ˆ๋‹ค https://kr.pinterest.com/su..

[๊ตฌ๊ธ€ ์• ๋„๋ฆฌํ‹ฑ์Šค] nextjs app router ์—์„œ google tag manager ์‰ฝ๊ฒŒ ์ ์šฉํ•˜๊ธฐ

https://tagmanager.google.com/๊ตฌ๊ธ€ ํƒœ๊ทธ๋งค๋‹ˆ์ €๋กœ ๊ตฌ๊ธ€ ์• ๋„๋ฆฌํ‹ฑ์Šค ์ ์šฉํ•˜๋ ค๋ฉด, ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ ์ฝ”๋“œ๋ฅผ ์ถ”๊ฐ€ํ•ด์•ผํ•˜๋Š”๋ฐ, ๊ณ ๋Œ€๋กœ ๋ณต๋ถ™ํ•˜๋ฉด ์ ์šฉ๋˜์ง€ ์•Š๋Š”๋‹ค. ๋‹ค์Œ์„ ์ฐธ๊ณ ํ•˜๋ฉด ๋œ๋‹ค. https://nextjs.org/docs/app/building-your-application/optimizing/third-party-libraries Optimizing: Third Party Libraries | Next.jsOptimize the performance of third-party libraries in your application with the `@next/third-parties` package.nextjs.org ์„ค์น˜npm install @next/third-parties@latest..

๋ฐ˜์‘ํ˜•