Open kingwingfly opened 1 year ago
any update? facing same issue
Edit by maintainers: Comment was automatically minimized because it was considered unhelpful. (If you think this was by mistake, let us know). Please only comment if it adds context to the issue. If you want to express that you have the same problem, use the upvote 👍 on the issue description or subscribe to the issue for updates. Thanks!
@indiejoseph
Maybe we should implement a server to serve the static pages in the same way as the next start
does.
The server or tauri backend cannot recognize request to @xx/xx
and /(.)xx
, they just return /xx
. And I remember the static page in the client implements parallel route (On page /xx
, manually requesting /(.)xx
could get the parallel route working).
So I guess serving the right page at the server side according to the referrer or host in the headers can solve the problem.
I tried rename /(.)about.html
with cli, but there already a about.html
which the none modal page, on the other hand my site deploying to github page which no way to configurate how to route the folder structure, so i think we need to make some change in the next's router programmatically.
Link to the code that reproduces this issue
https://github.com/kingwingfly/downloader/tree/Louis/src
To Reproduce
I'm using Tauri, so it needs static export. And I also use Modal following the docs' example. Here's the code.
Here's the app dir tree:
The modal works well in dev model.
Then
npm run build
Use
npx serve@latest out
to serve theout
static pages.Certainly, if I visit
/config
, it just jump to the config page without modal.However, if I visit
/(.)config
, it works again.I know it must not be the right practice with static export, and it may need node runtime to support the parallel and intercepting routes.
Due to my poor knowledge, I don't know the detailed reason for its not working, and the docs' deploying/static export/unsupported features does not contain this either.
I wonder whether there's anything I did not notice, or maybe a doc patch is needed.
Current vs. Expected behavior
Current:
Modal impl with parallel and intercepting routes can not work properly with static export.
Expected:
Correct knowledge about modal with static export. And maybe the docs' deploying/static export/unsupported features need a patch.
Verify canary release
Provide environment information