如何在Firebase托管中包括子目录 [英] How to include subdirectories in firebase hosting

查看:50
本文介绍了如何在Firebase托管中包括子目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网站由主页组成,然后由子文件夹分隔在文件夹内.如何在我的页面托管服务(firebase托管)中包含子页面

My site consists of main page and then subages separated inside folders. How can I include subpages in my page host (firebase hosting)

推荐答案

(弗兰克的评论确实是答案)

(Frank's comment was really an answer)

Firebase将所有内容部署在您指定的目录下.因此,如果您的主页(index.html)位于当前目录和目录中,而其他页面位于该目录下的子目录中,那么如果您将public配置为指向当前目录,则应该全部部署它们.

Firebase deploys everything under the directory that you indicate. So if you have your main page (index.html) in the current and directory and the other pages in subdirectories under that, they should all be deployed if you configure public to point to the current directory.

部署配置

这篇关于如何在Firebase托管中包括子目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆