打包部署相关配置修改
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
VITE_ENV = 'production'
|
||||
|
||||
# 主域名
|
||||
VITE_HOST = 'https://gitcode.com'
|
||||
VITE_HOST = 'http://222.20.126.217:10010/openRepoPortal'
|
||||
|
||||
# 接口地址
|
||||
VITE_API_HOST = 'https://web-api.gitcode.com'
|
||||
@@ -26,7 +26,7 @@ VITE_CSDN_URL = 'https://web-api.gitcode.com/oauth/login/csdn'
|
||||
VITE_ORG_COMMUNITY = 'https://gitcode.com'
|
||||
|
||||
# 静态资源域名
|
||||
VITE_STATIC_HOST = 'https://cdn-static.gitcode.com'
|
||||
VITE_STATIC_HOST = 'http://222.20.126.217:10010/openRepoPortal'
|
||||
|
||||
# 主页搜索子应用
|
||||
VITE_CHILD_HOMEWEB_HOST = 'https://homepage-app.gitcode.com'
|
||||
|
||||
10
index.html
10
index.html
@@ -2,7 +2,7 @@
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="icon" href="https://cdn-static.gitcode.com/favicon.ico">
|
||||
<!-- <link rel="icon" href="https://cdn-static.gitcode.com/favicon.ico">-->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="preconnect" href="//homepage-app.gitcode.com" crossorigin />
|
||||
<link rel="dns-prefetch" href="//homepage-app.gitcode.com">
|
||||
@@ -23,10 +23,10 @@
|
||||
<div id="app"></div>
|
||||
<script type="module" src="/src/main.ts"></script>
|
||||
</body>
|
||||
<script type="text/javascript" src="https://cdn-static.gitcode.com/js/gitcode-icon.js"></script>
|
||||
<script type="text/javascript" src="https://cdn-static.gitcode.com/js/event-msg.min.0.0.2.js"></script>
|
||||
<script type="text/javascript" src="https://cdn-static.gitcode.com/js/lottie.min.js" defer></script>
|
||||
<script type="text/javascript" src="https://cdn-static.gitcode.com/js/furion.js" defer></script>
|
||||
<!-- <script type="text/javascript" src="https://cdn-static.gitcode.com/js/gitcode-icon.js"></script>-->
|
||||
<!-- <script type="text/javascript" src="https://cdn-static.gitcode.com/js/event-msg.min.0.0.2.js"></script>-->
|
||||
<!-- <script type="text/javascript" src="https://cdn-static.gitcode.com/js/lottie.min.js" defer></script>-->
|
||||
<!-- <script type="text/javascript" src="https://cdn-static.gitcode.com/js/furion.js" defer></script>-->
|
||||
<!-- baidu统计 -->
|
||||
<script>
|
||||
var _hmt = _hmt || [];
|
||||
|
||||
@@ -80,11 +80,11 @@ export function reorderSelectedItems(data: types.createGroupReqType): Promise<ty
|
||||
|
||||
// 查询组织path是否重复
|
||||
export function inquireOrgPathIsRepeat(data: types.createGroupReqType): Promise<types.commonGroupResType> {
|
||||
return request({
|
||||
url: `/api/v2/groups/path_suggestion`,
|
||||
method: 'get',
|
||||
params: data
|
||||
}, { customError: true });
|
||||
// return request({
|
||||
// url: `/api/v2/groups/path_suggestion`,
|
||||
// method: 'get',
|
||||
// params: data
|
||||
// }, { customError: true });
|
||||
}
|
||||
|
||||
// 组织讨论设置回显
|
||||
@@ -282,11 +282,11 @@ export function toSearchGroupMember(group_id: string, username: string) {
|
||||
|
||||
/* 查询path是个人还是组织 */
|
||||
export function getPathType(params: types.createGroupReqType): Promise<types.commonGroupResType> {
|
||||
return request({
|
||||
url: '/api/v2/groups/path_suggestion',
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
// return request({
|
||||
// url: '/api/v2/groups/path_suggestion',
|
||||
// method: 'get',
|
||||
// params
|
||||
// });
|
||||
}
|
||||
|
||||
/** 获取用量以及存储相关 */
|
||||
|
||||
@@ -12,6 +12,7 @@ const fs = require('node:fs')
|
||||
export default (config: any) => {
|
||||
const env = loadEnv(config.mode, process.cwd());
|
||||
return defineConfig({
|
||||
base: '/openRepoPortal/', // 确保与 Nginx 配置匹配
|
||||
plugins: [
|
||||
vue({
|
||||
template: {
|
||||
|
||||
Reference in New Issue
Block a user