update
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
export type ProxyInfo = {
|
||||
/**
|
||||
* 代理路径, 比如/root/center, 匹配的路径
|
||||
* 代理路径, 比如/root/home, 匹配的路径
|
||||
*/
|
||||
path?: string;
|
||||
/**
|
||||
|
||||
@@ -2,7 +2,7 @@ import { LocalProxy, LocalProxyOpts } from './index.ts';
|
||||
import http from 'node:http';
|
||||
import { fileProxy } from './proxy/file-proxy.ts';
|
||||
const localProxy = new LocalProxy({});
|
||||
let home = '/root/center';
|
||||
let home = '/root/home';
|
||||
export const initProxy = (data: LocalProxyOpts & { home?: string }) => {
|
||||
localProxy.pagesDir = data.pagesDir || '';
|
||||
localProxy.watch = data.watch ?? false;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
export type ProxyInfo = {
|
||||
/**
|
||||
* 代理路径, 比如/root/center, 匹配的路径
|
||||
* 代理路径, 比如/root/home, 匹配的路径
|
||||
*/
|
||||
path?: string;
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user