Development
Full-Stack
Learn how to build a full-stack extension by creating a separate backend API server to handle requests from your extension client on Replit.
Create a full-stack Extension
While full-stack extensions are not supported within a single Replit App (aka a monorepo) at this time, you can always call out from your Extension client Replit App to any outside API endpoints.
Until we have full Deployments support, you can use this simple workaround to create your own server API for your extension:
- Create your Extension Client Replit App →
- Create a separate Replit App for your backend. This should expose an API. For example it could be a Node or Ruby API server, or even a Next.js site with a serverless function.
- Make fetch requests from your extension client to your backend
Make sure to enable CORS requests on your extension backend API, since the extension client and API will run on different subdomains
If you’re using Next.js to build your extension, we recommend exporting it statically and pointing your releases to the build directory.
Was this page helpful?