File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,7 +33,9 @@ import { makeWebHttpClient } from 'git-essentials/clients/request/WebHttpClient'
3333// as a result the browser will refuse to serve the request.
3434// To overcome this limitation CORS proxy server could be used.
3535const corsProxyUrlTransformer = (originalUrl : string ) => {
36- return ` https://www.noteshub.app/api/cors-proxy.ts?url=${encodeURIComponent (originalUrl )} `
36+ // Please use this CORS proxy server only for testing and not production use.
37+ // You can fork CORS proxy server from here https://github.com/alex-titarenko/gitcorsproxy
38+ return ` https://gitcorsproxy.vercel.app/api/cors?url=${encodeURIComponent (originalUrl )} `
3739}
3840
3941const fs = new InMemoryFsClient ()
Original file line number Diff line number Diff line change 11{
22 "name" : " git-essentials" ,
3- "version" : " 0.6.6 " ,
3+ "version" : " 0.7.0 " ,
44 "description" : " A collection of essential Git commands for your browser and Node.js" ,
55 "main" : " dist/esm/index.js" ,
66 "types" : " index.d.ts" ,
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { join } from 'src/utils/join'
77const isBrowser = ( ) => typeof window !== `undefined`
88
99const corsProxyUrlTransformer = ( originalUrl : string ) => {
10- return `https://www.noteshub .app/api/cors-proxy.ts ?url=${ encodeURIComponent ( originalUrl ) } `
10+ return `https://gitcorsproxy.vercel .app/api/cors?url=${ encodeURIComponent ( originalUrl ) } `
1111}
1212
1313type IntegrationContext = {
You can’t perform that action at this time.
0 commit comments