Astro + Preact + Resend + Netlify
I’m using an Astro action to send emails with Resend, all works perfectly in local, but the deployed app fails, it throws the following error:
TypeError- Failed to resolve module specifier "//@astro-server-islands" from file:///var/task/.netlify/build/entry.mjs": Invalid relative URL or base scheme is not hierarchical.
TypeError [ERR_UNSUPPORTED_RESOLVE_REQUEST]: Failed to resolve module specifier "//@astro-server-islands" from "file:///var/task/.netlify/build/entry.mjs": Invalid relative URL or base scheme is not hierarchical.
The email form is a Preact component that calls the Astro action on the form’s onSubmit attribute.
I already updated astro and @astrojs/netlify dependencies to the latest version, but didn’t solve the error.
Node version is set to 22x in Netlify configs, and I’m using 22.17.0 in local.
If anyone has faced this error before, I’d appreciate the help.
