treefarmstudio / astro-sanity

This is a helper package to integrate Astro and Sanity
https://www.npmjs.com/package/astro-sanity
MIT License
102 stars 10 forks source link

Does this integration work with SSR for astro 4 (latest)? #29

Open aaronm-git opened 8 months ago

aaronm-git commented 8 months ago

this integration doesnt work with latest astro 4. These instructions dosnt work: https://www.sanity.io/plugins/astro-sanity

[vite] Error when evaluating SSR module /Users/.../Sites/Projects/.../frontend/astro.config.mjs:
|- TypeError: __vite_ssr_import_1__.default is not a function
    at /Users/.../Sites/Projects/.../frontend/astro.config.mjs:24:11
    at async instantiateModule (file:///Users/.../Sites/Projects/.../frontend/node_modules/vite/dist/node/chunks/dep-R0I0XnyH.js:50506:9)

[astro] Unable to load your Astro config

__vite_ssr_import_1__.default is not a function