1.1 KiB
1.1 KiB
Development and contributing
The code is at https://github.com/neondatabase/serverless. Most of the interesting stuff is in shims/net/index.ts and the export/ folder.
- To update the npm & jsr package:
npm run export
cd dist/npm
npm version patch # or minor or major
npm publish
# Copy npm version
jq --arg v "$(jq -r .version dist/npm/package.json)" '.version = $v' dist/jsr/jsr.json > dist/jsr/jsr.json.tmp && mv dist/jsr/jsr.json.tmp dist/jsr/jsr.json
# Publish jsr package
npx jsr publish
-
To run or deploy the simple test app on Cloudflare, create a
.dev.varsfile containingNEON_DB_URL=postgres://connection_string, runnpx wrangler dev --localornpx wrangler publish. -
To run the latencies test app in a browser, create a
.dev.varsfile as above, runnpm run browserand visithttp://localhost:7070/dist/browser/. To include debug output and avoid minification, usenpm run browserDebuginstead. -
To run the latencies test app in node, create a
.dev.varsfile as above and runnpm run node. To include debug output and avoid minification, usenpm run nodeDebuginstead.