#Redirects object unexpected

2 messages · Page 1 of 1 (latest)

split shard
#
export default defineConfig({
  experimental: {
    redirects: true,
  },
  ..
  output: "static",
  adapter: cloudflare(),
  redirects: {
    "/invite": {
      status: 301,
      destination:
        "...",
    },
  },
});
[config] Astro found issue(s) with your configuration:
  ! redirects./invite  Expected string, received object.
#

And also I see static isn't supported for the cloudflare adapter, but surely having dev and prod redirects work is a good enough reason to have that?