diff --git a/docs/2.deploy/20.providers/render.md b/docs/2.deploy/20.providers/render.md index 3723e9c701..21a338cf14 100644 --- a/docs/2.deploy/20.providers/render.md +++ b/docs/2.deploy/20.providers/render.md @@ -6,33 +6,19 @@ :read-more{title="render.com" to="https://render.com"} -## Set up application +## Set up application (Runtime: Node) 1. [Create a new Web Service](https://dashboard.render.com/select-repo?type=web) and select the repository that contains your code. 2. Ensure the 'Node' environment is selected. -3. Update the start command to `node .output/server/index.mjs` -4. Click 'Advanced' and add an environment variable with `NITRO_PRESET` set to `render_com`. You may also need to add a `NODE_VERSION` environment variable set to `18` for the build to succeed ([docs](https://render.com/docs/node-version)). +3. Update the build command to `npx nypm install && npm run build` +4. Update the start command to `node .output/server/index.mjs` 5. Click 'Create Web Service'. -## Infrastructure as Code (IaC) +## Set up application (Runtime: Bun) -1. Create a file called `render.yaml` with following content at the root of your repository. - -> This file followed by [Infrastructure as Code](https://render.com/docs/infrastructure-as-code) on Render - -```yaml -services: - - type: web - name: - env: node - branch: main - startCommand: node .output/server/index.mjs - buildCommand: npx nypm install && npm run build - envVars: - - key: NITRO_PRESET - value: render_com -``` - -1. [Create a new Blueprint Instance](https://dashboard.render.com/select-repo?type=blueprint) and select the repository containing your `render.yaml` file. - -You should be good to go! +1. [Create a new Web Service](https://dashboard.render.com/select-repo?type=web) and select the repository that contains your code. +2. Ensure the 'Node' environment is selected. +3. Update the build command to `bun install && bun run build` +4. Update the start command to `bun run .output/server/index.mjs` +5. Click 'Advanced' and add an environment variable with `NITRO_PRESET` set to `bun`. +6. Click 'Create Web Service'.