是否可以在子域中添加Gatsby博客到现有的Gatsby网站?

发布于 2025-01-23 16:03:42 字数 164 浏览 3 评论 0 原文

我的问题是:

我想创建一个盖茨比网站(网站的主要部分)。我还希望在subdomain blog.site.com上使用NetLify CMS(即将托管的网站)一个Gatsby Run博客。

这可能吗?我需要研究/知道什么才能实现这一目标?对于域,如果需要该信息,我将使用Google域。

My question is:

I want to create a gatsby site (the main section of the website). I also want a gatsby run blog with netlify CMS (which is what the site will be hosted with) on the subdomain blog.site.com.

Is this possible? What would I need to research/know to make this happen? For the domain, I will use google domains if that information is needed.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

明明#如月 2025-01-30 16:03:42

您只需要创建两个不同的gatsby网站:

  • 1对于网站的主要部分
  • 1对于盖茨比方面的博客

,您不需要任何额外的配置(甚至不需要 pathprefix ),只是一个常规站点。配置必须在服务器(netLify)中完成,将每个站点添加到a 自定义域< /a>。

关于Google域,您只需要在每个服务器中添加适当的DN。您可能会发现这篇文章有见地:

You just need to create two different Gatsby sites:

  • 1 for the main section of your site
  • 1 for your blog

On Gatsby's side, you don't need any extra configuration (not even pathPrefix), is just a regular site. The configuration must be done in the server (Netlify) adding each site to a custom domain.

Regarding the Google domain, you will only need to add the proper DNS in each server. You may find this article insightful: https://medium.com/@jacobsowles/how-to-deploy-a-google-domains-site-to-netlify-c62793d8c95e

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文