![](/img/trans.png)
[英]webpack + express + angular 4 error "Error: ENOENT: no such file or directory, stat 'C:\public\index.html'
[英]Error: ENOENT: no such file or directory, stat '/var/task/src/functions/public/home.html'
我正在嘗試在.netlify 上部署我的基於 express 的站點,我的本地目錄如下所示:
my.netlify.toml 看起來像這樣:
[build]
functions="functions"
[[redirects]]
to="/.netlify/functions/_app/:splat"
from="/*"
status=200
當我使用netlify dev
在本地運行它時它工作正常
但是當我在 .netlify 上部署網站時,它顯示了這個錯誤:
嘗試將第 14 行: app.use("/", router)
更改為
app.use('/.netlify/functions/_app', router); // path must route to lambda
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.