nextjs,tailwindcss,vercel

Vercel์—์„œ ํŒŒ์ผ ์ฝ๊ณ  ์“ฐ๊ธฐ ํ•  ์ˆ˜ ์žˆ์„๊นŒ? (์„œ๋ฒ„๋ฆฌ์Šค ํ™˜๊ฒฝ)

์ฃผ์˜ ๐Ÿฑ 2024. 7. 26. 01:33
728x90
๋ฐ˜์‘ํ˜•

Vercel๋กœ ๋ฐฐํฌํ•˜๊ณ ๋‚˜์„œ๋Š” ํด๋”๋ฅผ ๋งŒ๋“ ๋‹ค๋˜๊ฐ€, ํŒŒ์ผ์„ ์ €์žฅํ•œ๋‹ค๋˜๊ฐ€, ์ฝ๊ณ  ์“ด๋‹ค๋˜๊ฐ€ ํ•˜๋Š” fs ํ™œ๋™์— ์ œ์•ฝ์ด ์žˆ๋‹ค.

์‹ค์ œ๋กœ ๋ง‰์ƒ ๋ฐฐํฌ๋ฅผ ํ•ด๋ณด๋ฉด ์˜ค๋ฅ˜๊ฐ€ ๋งŽ์ด ์ƒ๊ธด๋‹ค. 

 

๋กœ์ปฌ์—์„œ๋Š” ๋˜์ง€๋งŒ, vercel์— ๋ฐฐํฌํ•˜๋ฉด ์„œ๋ฒ„๋ฆฌ์Šค ํ™˜๊ฒฝ์ด๊ธฐ ๋•Œ๋ฌธ์ด๋‹ค. 

๊ทธ๋ž˜์„œ ๊ตฌ์กฐ์ ์œผ๋กœ ์ด๋ฏธ์ง€ ๋‚˜ ํŒŒ์ผ์„ ์ €์žฅํ•˜๋Š” ์„œ๋ฒ„๋ฅผ ํ•˜๋‚˜ ๋” ๋‘”๋‹ค. (์•„๋งˆ์กด์˜ S3 ๊ฐ™์€)

๊ทธ์น˜๋งŒ ๋‚˜๋Š” ์ด๋ ‡๊ฒŒ ํ•˜๊ธฐ ์‹ซ์—ˆ๋‹ค. ๋ฒˆ๊ฑฐ๋กญ๊ณ  ์ด๋ฏธ์ง€ ์„œ๋ฒ„๋Š” ๋” ์„œ๋น„์Šค๊ฐ€ ์ปค์ง€๋ฉด ๋„์ž…ํ•˜๊ณ  ์‹ถ์—ˆ๊ธฐ ๋–„๋ฌธ์ด๋‹ค(๋ฌผ๋ก  ํ•ด๋ณด๋Š” ๊ฒฝํ—˜๋„ ์ข‹์„๊ฒƒ์ด๊ณ  ๋‚˜์ค‘์— ์„œ๋น„์Šค๋ฅผ ๋” ๋งŒ๋“ค๋‹ค๋ณด๋ฉด ์–ธ์  ๊ฐ€ ํ•˜๊ฒŒ๋˜๋ฆฌ๋ผ๋Š” ์ƒ๊ฐ์ด ์žˆ๋‹ค. )

 

๋‹ค์Œ์„ ์ฐธ๊ณ ํ•ด์„œ ์‹œ๋„ํ•ด๋ณด์•˜๋‹ค. 

https://vercel.com/guides/how-can-i-use-files-in-serverless-functions

https://vercel.com/guides/why-does-my-serverless-function-work-locally-but-not-when-deployed

 

How to Fix a "This Serverless Function has crashed" Error

Information about troubleshooting Serverless Functions that work locally but not when deployed.

vercel.com

 

๋งŒ๋“ค๊ณ ์žˆ๋Š” ์„œ๋น„์Šค๋Š” ์˜๋ฌธ ์‹ธ์ธ์„ ai๋กœ ์ƒ์„ฑํ•ด์ฃผ๋Š” ์„œ๋น„์Šค์ด๋‹ค. 

์ƒ์„ฑ ๊ฒฐ๊ณผ ์ด๋ฏธ์ง€์™€ ๋”ฐ๋ผ์“ฐ๊ธฐ ์—ฐ์Šตํ•  ์ˆ˜ ์žˆ๋Š” pdf ํŒŒ์ผ๋“ค์„ ์ฝ๊ณ  ์“ฐ๊ธฐ๊ฐ€ ๊ฐ€๋Šฅํ•ด์•ผํ–ˆ๋‹ค. 

 

https://www.aisignature.live/

 

AI Signature Generator - Create Your Unique Signature

Generate personalized signatures instantly with our AI-powered tool. Perfect for digital documents and personal branding.

www.aisignature.live

 

While Serverless Functions have a writeable /tmp scratch space up to 500 MB, it is not recommended to use this approach. Also, Edge Functions do not have filesystem access due to their ephemeral nature.

/tmp ์—๋Š” ์ผ์‹œ์ ์œผ๋กœ ์ €์žฅํ•  ์ˆ˜ ์žˆ๋‹ค. 

๊ทธ๋Ÿฌ๋‚˜ ์ถ”์ฒœํ•˜๋Š” ๋ฐฉ๋ฒ•์€ ์•„๋‹ˆ๋ผ๊ณ  ํ•œ๋‹ค. 

์ ์šฉ๋ฐฉ๋ฒ•์€ ๋‹ค์Œ์„ ์ฐธ๊ณ ํ•˜๋ฉด ์ข‹๋‹ค

https://github.com/vercel/next.js/discussions/57609

๋ฐ˜์‘ํ˜•