打包部署相关配置修改
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
VITE_ENV = 'production'
|
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'
|
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_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'
|
VITE_CHILD_HOMEWEB_HOST = 'https://homepage-app.gitcode.com'
|
||||||
|
|||||||
10
index.html
10
index.html
@@ -2,7 +2,7 @@
|
|||||||
<html lang="zh">
|
<html lang="zh">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<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">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<link rel="preconnect" href="//homepage-app.gitcode.com" crossorigin />
|
<link rel="preconnect" href="//homepage-app.gitcode.com" crossorigin />
|
||||||
<link rel="dns-prefetch" href="//homepage-app.gitcode.com">
|
<link rel="dns-prefetch" href="//homepage-app.gitcode.com">
|
||||||
@@ -23,10 +23,10 @@
|
|||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
<script type="module" src="/src/main.ts"></script>
|
<script type="module" src="/src/main.ts"></script>
|
||||||
</body>
|
</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/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/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/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/furion.js" defer></script>-->
|
||||||
<!-- baidu统计 -->
|
<!-- baidu统计 -->
|
||||||
<script>
|
<script>
|
||||||
var _hmt = _hmt || [];
|
var _hmt = _hmt || [];
|
||||||
|
|||||||
@@ -80,11 +80,11 @@ export function reorderSelectedItems(data: types.createGroupReqType): Promise<ty
|
|||||||
|
|
||||||
// 查询组织path是否重复
|
// 查询组织path是否重复
|
||||||
export function inquireOrgPathIsRepeat(data: types.createGroupReqType): Promise<types.commonGroupResType> {
|
export function inquireOrgPathIsRepeat(data: types.createGroupReqType): Promise<types.commonGroupResType> {
|
||||||
return request({
|
// return request({
|
||||||
url: `/api/v2/groups/path_suggestion`,
|
// url: `/api/v2/groups/path_suggestion`,
|
||||||
method: 'get',
|
// method: 'get',
|
||||||
params: data
|
// params: data
|
||||||
}, { customError: true });
|
// }, { customError: true });
|
||||||
}
|
}
|
||||||
|
|
||||||
// 组织讨论设置回显
|
// 组织讨论设置回显
|
||||||
@@ -282,11 +282,11 @@ export function toSearchGroupMember(group_id: string, username: string) {
|
|||||||
|
|
||||||
/* 查询path是个人还是组织 */
|
/* 查询path是个人还是组织 */
|
||||||
export function getPathType(params: types.createGroupReqType): Promise<types.commonGroupResType> {
|
export function getPathType(params: types.createGroupReqType): Promise<types.commonGroupResType> {
|
||||||
return request({
|
// return request({
|
||||||
url: '/api/v2/groups/path_suggestion',
|
// url: '/api/v2/groups/path_suggestion',
|
||||||
method: 'get',
|
// method: 'get',
|
||||||
params
|
// params
|
||||||
});
|
// });
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 获取用量以及存储相关 */
|
/** 获取用量以及存储相关 */
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ const fs = require('node:fs')
|
|||||||
export default (config: any) => {
|
export default (config: any) => {
|
||||||
const env = loadEnv(config.mode, process.cwd());
|
const env = loadEnv(config.mode, process.cwd());
|
||||||
return defineConfig({
|
return defineConfig({
|
||||||
|
base: '/openRepoPortal/', // 确保与 Nginx 配置匹配
|
||||||
plugins: [
|
plugins: [
|
||||||
vue({
|
vue({
|
||||||
template: {
|
template: {
|
||||||
|
|||||||
Reference in New Issue
Block a user