Next.js Discord

Discord Forum

Static Exports and sanity cms

Unanswered
Yellowstripe scad posted this in #help-forum
Open in Discord
Yellowstripe scadOP
Hello everyone I have a next js 14 app with app router that uses sanity for data fetching and i treid to set it up to use output: export.

But when i try to use client.fetch i get the error server actions not allowed, am i doing something wrong or is it not possible to fetch sanity data when using static export.

If it's not possible can someone explain why, since normal fetches and promise resolvings work fine.

0 Replies