Replies: 6 comments 13 replies
-
我尝试使用了下面的依赖,在部署后,其结果是一致的:
当访问了某个页面就不能刷新,一旦刷新页面就会得到 |
Beta Was this translation helpful? Give feedback.
-
这个项目使用的是这个代码:https://github.com/solidjs/templates/tree/master/ts-router |
Beta Was this translation helpful? Give feedback.
-
I don't have any experience with Deno sorry - but I don't think this is a It looks like Deno is just working as a plain web file server. I imagine your My guess is you'd need to use a server-side framework that is compatible with Deno. I'm not sure if that includes |
Beta Was this translation helpful? Give feedback.
-
Seems like my problem has been solved, either on Vercel or my own server. But I still want to know, how should I do it in Deno Deploy. I tried Google but I didn't find an answer. |
Beta Was this translation helpful? Give feedback.
-
https://github.com/xbmlz/vitesse-solid,Opinionated Vite + SolidJS Starter Template |
Beta Was this translation helpful? Give feedback.
-
https://github.com/xbmlz/vitesse-solid,Opinionated Vite + SolidJS Starter Template |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
solid 和 solid-router 的版本是:
我使用命令将其部署到了 deno
然后我访问了项目的地址,在访问 “/” 根目录时,如果你没有登录,我将使用导航将访问者送到 “/login” 登录页:
此时访问的地址是:
https://domain/login
但我不能刷新,如果我点击浏览器的刷新按钮将得到Not Found
,并且,我也不能输入其他访问地址比如
https://domain/abcd
即使我拥有这个路由,也会得到Not Found
,同时,在控制台也将得到
GET https://domain/login 404
或GET https://domain/abcd 404
的错误。我不明白,是我的操作有问题吗?我应该修改哪些代码?
Beta Was this translation helpful? Give feedback.
All reactions