From 342543e635e4efef1dcedf2450e704db26c5a441 Mon Sep 17 00:00:00 2001 From: Henrikh Kantuni Date: Wed, 18 Jun 2025 23:19:09 -0400 Subject: [PATCH 1/2] Fix typos --- docs/patterns/deploy.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/patterns/deploy.md b/docs/patterns/deploy.md index 92db6f11..fc3c8bd5 100644 --- a/docs/patterns/deploy.md +++ b/docs/patterns/deploy.md @@ -244,9 +244,9 @@ EXPOSE 3000 ## Railway [Railway](https://railway.app) is one of the popular deployment platform. -Railway assign **random port** to expose for each deployment that can be access via `PORT` environment variable. +Railway assigns a **random port** to expose for each deployment, which can be accessed via the `PORT` environment variable. -We need to modify our Elysia server to accept `PORT` environment to comply with Railway port. +We need to modify our Elysia server to accept the `PORT` environment variable to comply with Railway port. Instead of a fixed port, we may use `process.env.PORT` and provide a fallback on development instead. ```ts From a76b042fd0a1bdd008e074f5eeb9b86e903405b6 Mon Sep 17 00:00:00 2001 From: Henrikh Kantuni Date: Wed, 18 Jun 2025 23:21:00 -0400 Subject: [PATCH 2/2] Fix typo --- docs/patterns/unit-test.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/patterns/unit-test.md b/docs/patterns/unit-test.md index 46d0c0b3..bc5994a4 100644 --- a/docs/patterns/unit-test.md +++ b/docs/patterns/unit-test.md @@ -30,7 +30,7 @@ import { describe, expect, it } from 'bun:test' import { Elysia } from 'elysia' describe('Elysia', () => { - it('return a response', async () => { + it('returns a response', async () => { const app = new Elysia().get('/', () => 'hi') const response = await app @@ -74,7 +74,7 @@ const app = new Elysia().get('/hello', 'hi') const api = treaty(app) describe('Elysia', () => { - it('return a response', async () => { + it('returns a response', async () => { const { data, error } = await api.hello.get() expect(data).toBe('hi')