I have a form that lives at /dashboard/submit/
It works unreliably. It's using astro DB and hosted on Vercel using ISR.
I've added the url to ISR exclusions but its still somehow using isr cache i believe.
import { defineConfig } from 'astro/config';
import tailwind from "<@&1055234544183287879>/tailwind";
import db from "<@&1055234544183287879>/db";
import react from "<@&1055234544183287879>/react";
import clerk from "astro-clerk-auth";
import vercel from "<@&1055234544183287879>/vercel/serverless";
export default defineConfig({
integrations: [tailwind(), db(), react(), clerk()],
output: "server",
adapter: vercel({
webAnalytics: { enabled: true },
isr: {
expiration: 60 * 60 * 8,
exclude: ["/dashboard/(.*)", "/dashboard/", "/dashboard", "/dashboard/submit", "/dashboard/submit/", "/sign-in", "/sign-up"]
}
})
});
Due to this issue it seems to work quite unreliably. Works reliably in development, but not in production.
What can I do to make it more reliable? Note its posting the form as status 200, but nothing gets into the database. It has a success redirection which also sometimes works, sometimes doesnt.
I want to remove ISR from the /dashboard/ paths but its not doing that. How can i solve this?