@leafage/toolkit
Version:
The React Server Side Render Framework
38 lines (33 loc) • 785 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
*/
;
Object.defineProperty(exports, '__esModule', { value: true });
var path = require('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: path.join(process.cwd(), 'public')
},
// 代理
// proxy: {
// '/api': {
// target: 'https://xxx.com/api',
// changeOrigin: true,
// },
// },
proxy: {}
};
exports.default = server;