【问题标题】:Sveltekit Firebase hostingSveltekit Firebase 托管
【发布时间】:2022-01-19 04:18:54
【问题描述】:

如何使用 SvelteKit 和 firebase 托管? firebase 托管要求将 html 文件称为 Index.html,而 SvelteKit 将其称为 app.html。我认为这与 SvelteKit 适配器有关

【问题讨论】:

    标签: firebase svelte firebase-hosting svelte-3 sveltekit


    【解决方案1】:

    您可以configure Firebase 提供您想要的文件。

    "hosting": {
      // ...
    
      // Serves app.html for requests to files or directories that do not exist
      "rewrites": [ {
        "source": "**",
        "destination": "/app.html"
      } ]
    }
    

    【讨论】:

      猜你喜欢
      • 2020-06-17
      • 2017-09-16
      • 2021-06-14
      • 2018-05-26
      • 2016-11-07
      • 2020-04-07
      • 2021-05-07
      • 2021-04-10
      • 1970-01-01
      相关资源
      最近更新 更多