mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
chore: convert to esm, add window.plebbitRpcAuthKey, add defaultMediaIpfsGatewayUrl
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// use this proxy server to debug ipfs api requests made by electron
|
||||
|
||||
const http = require('http');
|
||||
const httpProxy = require('http-proxy');
|
||||
import http from 'http';
|
||||
import httpProxy from 'http-proxy';
|
||||
|
||||
// start proxy
|
||||
const proxy = httpProxy.createProxyServer({});
|
||||
@@ -45,4 +45,4 @@ const start = ({ proxyPort, targetPort } = {}) => {
|
||||
console.log(`proxy server listening on port ${proxyPort}`);
|
||||
};
|
||||
|
||||
module.exports = { start };
|
||||
export default { start };
|
||||
|
||||
Reference in New Issue
Block a user