Skip to content
This repository was archived by the owner on Sep 26, 2025. It is now read-only.

Commit d6d60d3

Browse files
committed
binary data example
1 parent 60efcc4 commit d6d60d3

2 files changed

Lines changed: 11 additions & 16 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { Request, Response } from 'express'
2+
import { gzipSync } from 'zlib'
3+
4+
export default (req: Request, res: Response) => {
5+
const data = 'hello world'
6+
const compressed = gzipSync(Buffer.from(data, 'utf8'))
7+
const base64Compressed = compressed.toString('base64')
8+
9+
res.setHeader('Content-Type', 'application/octet-stream')
10+
res.status(200).send(base64Compressed)
11+
}

examples/myproject/nhost/nhost.toml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -163,22 +163,6 @@ maxParallelMaintenanceWorkers = 2
163163
[storage]
164164
version = '0.7.1'
165165

166-
[ai]
167-
version = '0.8.0'
168-
webhookSecret = '{{ secrets.GRAPHITE_WEBHOOK_SECRET }}'
169-
170-
[ai.resources]
171-
[ai.resources.compute]
172-
cpu = 125
173-
memory = 256
174-
175-
[ai.openai]
176-
organization = ''
177-
apiKey = '{{ secrets.OPENAI_API_KEY }}'
178-
179-
[ai.autoEmbeddings]
180-
synchPeriodMinutes = 5
181-
182166
[observability]
183167
[observability.grafana]
184168
adminPassword = '{{ secrets.GRAFANA_ADMIN_PASSWORD }}'

0 commit comments

Comments
 (0)