mirror of
https://github.com/setube/ogame-vue-ts.git
synced 2026-05-12 07:55:11 +08:00
feat(server): 更新静态资源目录路径
- 将静态资源目录从 'dist' 更改为 'docs' - 确保服务器能正确指向新的构建输出目录 - 适配 Vue 项目文档部署需求
This commit is contained in:
@@ -6,8 +6,8 @@ const app = express();
|
||||
const HOST = '0.0.0.0';
|
||||
|
||||
app.set('trust proxy', true);
|
||||
// 指向 Vue 构建后的 dist 目录
|
||||
app.use(express.static(path.join(process.cwd(), 'dist')));
|
||||
// 指向 Vue 构建后的 docs 目录
|
||||
app.use(express.static(path.join(process.cwd(), 'docs')));
|
||||
|
||||
const getLocalIp = () => {
|
||||
const interfaces = os.networkInterfaces();
|
||||
|
||||
Reference in New Issue
Block a user