next build. An app that renders on each request, or uses server actions, middleware or route handlers that run on each request, needs a server: make it a Mist app instead. See Site or App?.
Configure the export
next.config.mjs
output: "export"writes plain files toout.trailingSlash: truewrites each page asabout/index.html, which the site serves at/about.images.unoptimizedis needed because there is no image server.
Use the SDK
The SDK runs in the browser. Use it in a client component:app/hello.tsx
Deploy
fluid deploy sees output: "export" in next.config and publishes out. Without it, fluid deploy treats the app as one that needs a server, explains why and publishes nothing. To publish an export by hand, run fluid sites publish --dir out.