kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
feat: deploy gateway to CF (WIP; DNS still pending)
rodzic
771f0d9cc8
commit
48c480eb00
|
@ -13,8 +13,8 @@
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"source": "./src/worker.ts",
|
"source": "./src/worker.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"deploy": "wrangler deploy --outdir dist --upload-source-maps --var SENTRY_RELEASE:$(sentry-cli releases propose-version)",
|
|
||||||
"dev": "wrangler dev",
|
"dev": "wrangler dev",
|
||||||
|
"deploy": "wrangler deploy --var SENTRY_RELEASE:$(sentry-cli releases propose-version)",
|
||||||
"cf-clear-cache": "del .wrangler",
|
"cf-clear-cache": "del .wrangler",
|
||||||
"clean": "del dist",
|
"clean": "del dist",
|
||||||
"test": "run-s test:*",
|
"test": "run-s test:*",
|
||||||
|
|
|
@ -13,6 +13,12 @@
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"head_sampling_rate": 1
|
"head_sampling_rate": 1
|
||||||
},
|
},
|
||||||
|
"routes": [
|
||||||
|
{
|
||||||
|
"pattern": "gateway.agentic.so",
|
||||||
|
"custom_domain": true
|
||||||
|
}
|
||||||
|
],
|
||||||
"migrations": [
|
"migrations": [
|
||||||
{
|
{
|
||||||
"tag": "v1",
|
"tag": "v1",
|
||||||
|
|
|
@ -458,7 +458,7 @@ export function getCodeForHTTPConfig({
|
||||||
|
|
||||||
case 'httpie':
|
case 'httpie':
|
||||||
return {
|
return {
|
||||||
code: `http -j ${url} query='example google search'`,
|
code: `http ${url} query='example google search'`,
|
||||||
lang: 'bash'
|
lang: 'bash'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
"source": "./src/worker.ts",
|
"source": "./src/worker.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "wrangler dev",
|
"dev": "wrangler dev",
|
||||||
"deploy": "wrangler deploy --outdir dist --upload-source-maps",
|
"deploy": "wrangler deploy",
|
||||||
"test": "run-s test:*",
|
"test": "run-s test:*",
|
||||||
"test:typecheck": "tsc --noEmit"
|
"test:typecheck": "tsc --noEmit"
|
||||||
},
|
},
|
||||||
|
|
1
todo.md
1
todo.md
|
@ -25,6 +25,7 @@
|
||||||
- add basic legal terms and privacy policy (and update links in stripe)
|
- add basic legal terms and privacy policy (and update links in stripe)
|
||||||
- add caching to public projects api endpoints
|
- add caching to public projects api endpoints
|
||||||
- add support for [`@google/genai`](https://github.com/googleapis/js-genai) tools adapter and examples
|
- add support for [`@google/genai`](https://github.com/googleapis/js-genai) tools adapter and examples
|
||||||
|
- fix gateway sentry deployment upload
|
||||||
|
|
||||||
## TODO: Post-MVP
|
## TODO: Post-MVP
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue