Skip to content

Commit 0779d7f

Browse files
committed
bump pg-gateway
1 parent b29c682 commit 0779d7f

File tree

4 files changed

+38
-7
lines changed

4 files changed

+38
-7
lines changed

apps/browser-proxy/README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Browser Proxy
2+
3+
This app is a proxy that sits between the browser and a PostgreSQL client.
4+
5+
It is using a WebSocket server and a TCP server to make the communication between the PGlite instance in the browser and a standard PostgreSQL client possible.
6+
7+
## Development
8+
9+
Copy the `.env.example` file to `.env` and set the correct environment variables.
10+
11+
Install dependencies:
12+
13+
```sh
14+
npm install
15+
```
16+
17+
Start the proxy in development mode:
18+
19+
```sh
20+
npm run dev
21+
```
22+
23+
## Deployment
24+
25+
Create a new app on Fly.io, for example `database-build-browser-proxy`.
26+
27+
Fill the app's secrets with the correct environment variables based on the `.env.example` file.
28+
29+
Deploy the app:
30+
31+
```sh
32+
fly deploy --app database-build-browser-proxy
33+
```

apps/browser-proxy/fly.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
app = "postgres-new-browser-proxy"
2-
31
primary_region = 'iad'
42

53
[[services]]

apps/browser-proxy/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"expiry-map": "^2.0.0",
1313
"findhit-proxywrap": "^0.3.13",
1414
"p-memoize": "^7.1.1",
15-
"pg-gateway": "^0.3.0-alpha.7",
15+
"pg-gateway": "^0.3.0-beta.3",
1616
"ws": "^8.18.0"
1717
},
1818
"devDependencies": {

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)