Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
activities
/
web-lottery
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a3d0778d
authored
Jul 05, 2022
by
赖慧粮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(config): update config
parent
82178e71
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
cbncloudsDockerfile
+1
-1
nuxt.config.js
+5
-5
yarn.lock
+4
-4
No files found.
cbncloudsDockerfile
View file @
a3d0778d
...
@@ -4,7 +4,7 @@ RUN apk add --no-cache --update nodejs yarn
...
@@ -4,7 +4,7 @@ RUN apk add --no-cache --update nodejs yarn
COPY package.json yarn.lock ./
COPY package.json yarn.lock ./
RUN yarn install --registry=https://registry.yarnpkg.com
RUN yarn install --registry=https://registry.yarnpkg.com
FROM registry.cn-hangzhou.aliyuncs.com/
open_images/node12.13.1-pm2
FROM registry.cn-hangzhou.aliyuncs.com/
cduan/customer-resource-base:zabbix
ADD ./ /var/www/web_lottery
ADD ./ /var/www/web_lottery
ENV HOST 0.0.0.0
ENV HOST 0.0.0.0
ENV TZ Asia/Shanghai
ENV TZ Asia/Shanghai
...
...
nuxt.config.js
View file @
a3d0778d
...
@@ -6,13 +6,13 @@ const { version, name } = require('./package.json')
...
@@ -6,13 +6,13 @@ const { version, name } = require('./package.json')
const
env
=
getEnvConfig
({
const
env
=
getEnvConfig
({
server
:
process
.
env
.
mode
,
server
:
process
.
env
.
mode
,
ic
:
'ZmUtZ5WNp%XBzDw='
,
ic
:
'ZmUtZ5WNp%XBzDw='
})
})
const
{
X_CA_STAGE
,
RUN_SERVER
,
IS_PRIVATE
,
STATIC_SOURCE_DOMAIN
,
STATIC_OSS_ACCESS
,
OSS_DOMAIN
}
=
env
;
const
{
X_CA_STAGE
,
RUN_SERVER
,
IS_PRIVATE
,
STATIC_SOURCE_DOMAIN
,
STATIC_OSS_ACCESS
,
OSS_DOMAIN
}
=
env
const
{
SERVE_PORT
,
BASE_URL
,
PROJECT_NAME
,
SENTRY_DSN
,
GTAG_ID
}
=
env
.
lottery
;
const
{
SERVE_PORT
,
BASE_URL
,
PROJECT_NAME
,
SENTRY_DSN
,
GTAG_ID
}
=
env
.
lottery
const
IS_USE_OSS
=
process
.
env
.
NODE_ENV
===
'production'
&&
!
IS_PRIVATE
const
IS_USE_OSS
=
process
.
env
.
NODE_ENV
===
'production'
||
IS_PRIVATE
const
plugins
=
IS_USE_OSS
const
plugins
=
IS_USE_OSS
?
[
?
[
// 优化打包速度
// 优化打包速度
...
@@ -171,7 +171,7 @@ export default {
...
@@ -171,7 +171,7 @@ export default {
},
},
// Build Configuration: https://go.nuxtjs.dev/config-build
// Build Configuration: https://go.nuxtjs.dev/config-build
build
:
{
build
:
{
publicPath
:
!
IS_PRIVATE
publicPath
:
IS_USE_OSS
?
`//
${
STATIC_SOURCE_DOMAIN
}
/
${
PROJECT_NAME
}
/
${
version
}
`
?
`//
${
STATIC_SOURCE_DOMAIN
}
/
${
PROJECT_NAME
}
/
${
version
}
`
:
`/
${
X_CA_STAGE
.
toLowerCase
()
||
'prod'
}
/`
,
:
`/
${
X_CA_STAGE
.
toLowerCase
()
||
'prod'
}
/`
,
transpile
:
[
/vant.*
?
less/
],
transpile
:
[
/vant.*
?
less/
],
...
...
yarn.lock
View file @
a3d0778d
...
@@ -964,10 +964,10 @@
...
@@ -964,10 +964,10 @@
dependencies:
dependencies:
"@fortawesome/fontawesome-common-types" "^0.2.35"
"@fortawesome/fontawesome-common-types" "^0.2.35"
"@gdyfe/config@
^1.0.5
":
"@gdyfe/config@
latest
":
version "1.0.
5
"
version "1.0.
11
"
resolved "https://registry.yarnpkg.com/@gdyfe/config/-/config-1.0.
5.tgz#94152ff432bc999411258c52050fdcf1a3686668
"
resolved "https://registry.yarnpkg.com/@gdyfe/config/-/config-1.0.
11.tgz#cea66f79631c60a4f72439a8426abc0046f2d5f1
"
integrity sha512-
H4sXCmKUw5x33nMjW+UrDvY84spvUA/uMR6uygg6k5EIysKyKRlYb1dExXKnV1EolI7622clSh0iNwDpW5So6w
==
integrity sha512-
OCKLsNK0TP5YweJDCYNmXqPij+By2WdeMo+RT4zzneVyegz4wJyqvz0EsfcJ7i/dio+g5Bu9si4dc4kYvz3PpQ
==
dependencies:
dependencies:
node-rsa "^1.1.1"
node-rsa "^1.1.1"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment