Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我将 Next.js 与 next-auth 一起用于 OAuth,并希望提供只有经过身份验证的用户才能访问的图像。图像与 Next.js 应用程序存储在同一台机器上,例如在assets/images目录中。我将如何从那里为他们服务?我是否需要在api目录内创建一个 api 端点并在呈现受保护的页面时获取它们?
assets/images
api