1

I have a presentation on redirects How can I do this redirect in Astro?

I am using ssr on Astro adapter and node

For example, my presentation is as follows


    [
           {
              "id": 1,
              "source": "/blog/category/keyword/",
              "destination": "/article/category/keyword/",
              "permanent": true
            },
            {
              "id": 2,
              "source": "/features/pro/",
              "destination": "/features/",
              "permanent": true
            },
            {
              "id": 3,
              "source": "/blog/what-is-keyword/",
              "destination": "/article/what-is-keyword/",
              "permanent": true
            },
    ]

1 Answers1

-1

You can create and API route and use redirect() inside of it

Bryce Russell
  • 647
  • 3
  • 8