停靠并部署到云运行时,所有NextJs都可以使用吗?

发布于 2025-02-11 10:54:51 字数 728 浏览 1 评论 0原文

假设我有一个 nextjs app, _middleware getserversideprops getstaticprops ,我想在云运行中使用它。 首先使用 docker 我将做一个 image 之后,我将其上传到A 云运行容器

我是否必须做一些其他设置才能正常工作?

例如,使用 getStaticProps 的页面自动被缓存到GCP CDN上,还是我必须单独进行设置并以某种方式连接它们?

getServersideProps 的页面是否会呈现?

我所有的 _middleware 都可以吗?

我已经在Google Cloud/Firebase文档中挖掘了几天,但仍然发现自己的自我很困惑。

我仍然是编程的新手(过去6个月的自学旅程),如果这些问题似乎 foo 'lish ..

Lets say for example I have a NextJS app with _middleware and getServerSideProps and getStaticProps and I want to use it on Cloud Run.
First using Docker I'll make an Image after that I upload it to a Cloud Run Containter

Do I have to do some additional setup for everything to work properly?

For example do the pages with getStaticProps get automatically cached to a GCP cdn or do I have to setup that up separately and connect them somehow?

Will the pages with getServerSideProps be server side rendered?

And will all my _middleware work?

I've been digging in the Google cloud/Firebase documentation for a few days now and still find my self very confused.

I'm still fairly new to programming (been on a self-learning journey for the past 6 months) so please bare with me if these questions seem foo'lish..

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文