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.
The Launch application enforces a maximum execution timeout, requiring it to respond to any incoming HTTP request within 30 seconds. If the application fails to respond within this duration, the request will time out, resulting in a response with an HTTP status error code 500.
Note: For error code 500, please refer to the timed-out errors in the Server Logs tab to understand and address the issue.
The memory size for a Launch application is 1024 MB.
The Launch runtime environment leverages Node.js to power its execution environment.
The Launch file system for any SSR framework sites, cloud functions, or static sites refers to the Launch application's ability to interact with the file system, including read and write operations. By default, Launch applications implement a read-only file system, with the exception of the designated /tmp directory, which facilitates write operations.
The /tmp directory is a temporary file system accessible to every Launch serverless runtime, offering up to 500 MB of storage.
Note: The data stored in /tmp is non-persistent and is automatically deleted upon request completion.
Launch application supports the x86_64 instruction set.