SlingshotFrameworks
Next.js
How to use Slingshot with Next.js
Slingshot has built-in support for Next.js and can easily be added to your Next.js project.
Create route handler
The slingshot profile needs to be mounted in a route handler.
Both edge
and node
runtimes are supported.
You can change the basePath to anything you want, but it's recommended to use
the /api/slingshot
path.