Contentstack Launch lets you host any SSR framework sites, cloud functions, or static sites using the Other option under the Framework Preset field inside the Build and Output Settings while setting up the project. This is managed through different combinations of values entered in the Build and Output Settings while creating a new project or environment.
Contentstack Launch allows you to host pre-built static sites on Launch by importing projects from Git repositories or by uploading a zip file.
By using the steps mentioned in this guide, you will be able to host a static site on Launch.
Note: A static site does not require a build step since we're trying to host an already built website and its assets.
Follow the steps given below to host a static site on Launch.


With these steps, you have successfully deployed and hosted a static site on Launch.
Contentstack Launch allows you to host sites built using Static Site Generators on Launch by importing projects from Git repositories or by uploading a zip file.
Follow the steps given below to host an SSG site on Launch.
Note: Find the Build Command by going through your relevant framework documentation. Be sure to choose the build command suitable for deploying to production.

With these steps, you have successfully deployed and hosted an SSG site on Launch.
Contentstack Launch cloud functions are a mechanism for you to provide backend functionality on your sites and enable you to write, deploy, and run server-side code on-demand as API endpoints. Click here to learn more about hosting Cloud Functions.
In addition to the supported SSR (Server Side Rendered) frameworks, namely NextJS, Gatsby, and Angular-SSR, Contentstack Launch also facilitates the deployment of projects built on frameworks that are not supported by Launch, as long as it runs a Node.js server.
Note: Although Launch is built to support a wide array of Javascript frameworks, Contentstack may be limited to providing troubleshooting guidance for your specific application code. Please review our documentation carefully.
By using the steps mentioned in this guide, you will be able to host any SSR (Server Side Rendered) framework built on NodeJS.
Follow the steps given below to host an SSR site on Launch:
In the Create New Project modal, add the following details:
Note: When you select the repo, the Build and Output Settings section gets auto-populated.
Note: This field will be displayed only if you choose Import from a Git Repository to deploy your project.
Note: This is the same command you would use locally to start a production-ready server. Please ensure you do not use a command that starts the framework in developer mode, as this will impact its performance.
Note: Launch expects the framework to use the environment variable PORT for determining the port on which the server should start.
Note: Click Back to revert the changes and re-enter details.
Upon successful deployment, you will see the following screen.

By default, all the pages are cached on the Launch’s CDN when you deploy an SSR site using the Other framework. This means the subsequent requests to the same page will be cached, and the page will not be regenerated.
You can configure this behavior by returning appropriate cache headers from your server-side response. In the following example, we modify the Express.js server that handles template engine requests in routes.js to regenerate the page every 5 minutes:
router.get('/', function(req, res, next) {
res.header({'cache-control': 'max-age=0, s-maxage=300'});
res.render('index', { title: 'Hello World!' });
});You can also leverage Launch’s cache revalidation feature to render new content updates on demand.
Refer to the Server Configuration document to learn about the Other SSR server configuration.