Angular SSR - source map files added at the end of url (dynamic routes) - is that normal?

Discussão em 'Angular' iniciado por newbe, Março 9, 2025.

  1. newbe

    newbe Guest

    I cannot find the answer, but is that normal, that during SSR I have urls like:

    {
    "id": 1,
    "url": "/event/auth-link.component-AVZNHIWP.css.map",
    "urlAfterRedirects": "/event/auth-link.component-AVZNHIWP.css.map",
    "type": 1
    }


    after event there is a :eventSlug in my router file.

    {
    path: '',
    pathMatch: 'full',
    loadComponent: () => import('./events-list-page.component')
    .then(c => c.EventsListPageComponent)
    },
    {
    path: ':eventSlug',
    children: [
    {
    path: '',
    pathMatch: 'full',
    loadComponent: () => import('../events/page/event-page.component')
    .then(c => c.EventPageComponent)
    },
    ]
    },
    ...


    }

    Should I prevent my request and ignore eventSlugs which ends with .map, .js etc?

    I am using angular 17, SSR.

    Thank you!

    Continue reading...

Compartilhe esta Página