Error page in hybrid app with SPA and SSG #699
Unanswered
truumahn
asked this question in
Help & Questions
Replies: 1 comment 2 replies
-
Which |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is a Vue project. This is an overview of the project structure:
I have multiple multiple defaults for page rendering and my
pages
are set up with two domains,main
andadmin
.main
relies entirely on SSG, it has its ownrenderer
folder with its ownapp.ts
,PageShell.vue
,_default.page.server.ts
and_default.page.client.ts
. It also has, in themain
root a_default.page.route.ts
to utilize fileSystemRoutingRoot.admin
relies entirely on SPA, it has its ownrenderer
folder with its ownapp.ts
,PageShell.vue
,_default.page.server.ts
and_default.page.client.ts
.Having an _error.page.vue in the shared
renderer
folder causes the application to always load theadmin
renderer when there is an error - meaning the error page is in SPA. If I place_error.page.vue
in thesrc/main/renderer
folder, then it's the SSR/prerendered error page that loads, even on the admin page.Is this the expected behavior? Wouldn't it make sense in this case to have error pages per domain?
Beta Was this translation helpful? Give feedback.
All reactions