@leafage/toolkit
Version:
The React Server Side Render Framework
34 lines (31 loc) • 706 B
JavaScript
/**
* @leafage/toolkit v1.3.2
*
* Copyright (c) Leafage.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/
import { join } from 'node:path';
var server = {
// host
host: process.env.HOST || process.env.npm_config_host || 'localhost',
// 端口
port: process.env.PORT || process.env.npm_config_port || 7749,
// 静态资源目录
"static": {
path: '/public',
handle: join(process.cwd(), 'public')
},
// 代理
// proxy: {
// '/api': {
// target: 'https://xxx.com/api',
// changeOrigin: true,
// },
// },
proxy: {}
};
export { server as default };