fix(ssr): render storefront routes under tenant prefixes
This commit is contained in:
@@ -14,5 +14,12 @@ export const routes: Routes = [
|
|||||||
{
|
{
|
||||||
path: '',
|
path: '',
|
||||||
loadChildren: () => import('./features/store/store.routes').then((m) => m.routes)
|
loadChildren: () => import('./features/store/store.routes').then((m) => m.routes)
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '**',
|
||||||
|
loadComponent: () =>
|
||||||
|
import('./shared/pages/route-not-found-page.component').then(
|
||||||
|
(m) => m.RouteNotFoundPageComponent,
|
||||||
|
)
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|||||||
27
src/app/shared/pages/route-not-found-page.component.ts
Normal file
27
src/app/shared/pages/route-not-found-page.component.ts
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-route-not-found-page',
|
||||||
|
template: `
|
||||||
|
<main class="route-not-found">
|
||||||
|
<h1>404</h1>
|
||||||
|
<p>No encontramos la página solicitada.</p>
|
||||||
|
</main>
|
||||||
|
`,
|
||||||
|
styles: `
|
||||||
|
.route-not-found {
|
||||||
|
min-height: 100vh;
|
||||||
|
display: grid;
|
||||||
|
place-content: center;
|
||||||
|
gap: 0.5rem;
|
||||||
|
padding: 2rem;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1,
|
||||||
|
p {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
`,
|
||||||
|
})
|
||||||
|
export class RouteNotFoundPageComponent {}
|
||||||
Reference in New Issue
Block a user