How to Add llms.txt to the Root Directory in Shopify?

大家好,

我想将自定义 llms.txt 文件添加到我的 Shopify 商店的根目录,以便可以
通过以下方式访问它:

https://mystore.com/llms.txt

就像 Shopify 原生处理 robots.txt 一样。

有没有办法在Shopify 平台的根级别创建或公开这样的纯文本文件?

我并不想寻找使用应用程序、第三方托管、Cloudflare 或重定向的解决方法。
我只是想知道:我可以在 Shopify 商店的根目录中创建自定义 .txt 文件吗?如果可以,该如何创建?

提前感谢您的帮助!

Hi Markit-Themes,

Thanks for the clarification.

I figured that might be the case, but I was hoping there might be some undocumented or lesser-known method—something similar to how robots.txt is handled via the robots.txt.liquid template.

Since Shopify doesn’t currently support custom .txt files at the root, I’ll explore external options if it becomes strictly necessary, though I was trying to avoid adding more infrastructure for such a simple file.

Appreciate your response!

Best regards,
Mr_L