提交 87c11698 编写于 作者: 6 634fdfba4df6de071489fa06

config autorun parameters

上级 bc206eb3
......@@ -60,7 +60,7 @@
},
"repository": {
"type": "git",
"url": "git@gitcode.net:qq_35089484/1024OPENSOURCE"
"url": "git@gitcode.net:qq_35089484/csdn_datav"
},
"keywords": [
"data",
......
......@@ -3,8 +3,8 @@ autoOpen: true # 打开工作空间时是否自动开启所有应用的预览
apps:
- port: 8080 # 应用的端口
run: npm i && npm run serve # 应用的启动命令
command: npm i && npm run server -- --port 8080 --host 0.0.0.0 --allowedHosts all # 使用此命令启动服务,且不执行run
root: /ide/workspace/1024OPENSOURCE # 应用的启动目录
command: npm i && npm run serve -- --port 8080 --host 0.0.0.0 --allowedHosts all # 使用此命令启动服务,且不执行run
root: / # 应用的启动目录
name: csdn_dataV # 应用名称
description: 我的第一个 App。 # 应用描述
autoOpen: true # 打开工作空间时是否自动开启预览(优先级高于根级 autoOpen)
......
......@@ -8,13 +8,13 @@ if (process.env.NODE_ENV === 'production') {
publicPath = 'https://csdn.gitcode.host/csdn-datav/'
}
module.exports = defineConfig({
assetsDir: 'csdn-datav',
assetsDir: '',
transpileDependencies: true,
lintOnSave:false,
publicPath:publicPath,
devServer: {
allowedHosts:'all',
host: 'loc.csdn.net',
//host: 'loc.csdn.net',
headers: {
'Access-Control-Allow-Origin': '*'
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册