This commit is contained in:
AaronHux 2024-05-25 11:30:47 +08:00
parent 451a922182
commit 50ec1b1439
3 changed files with 22 additions and 24 deletions

View File

@ -7,17 +7,17 @@ COPY . .
# ARG env_file
# RUN npm config set registry https://mirrors.tuna.tsinghua.edu.cn/npm
# RUN npm install -g pnpm
# RUN pnpm config set registry https://mirrors.tuna.tsinghua.edu.cn/npm
RUN npm config set registry https://registry.npmmirror.com
RUN npm install -g pnpm
RUN pnpm config set registry https://registry.npmmirror.com
# 下载编译
# RUN pnpm i
RUN pnpm i
# RUN pnpm build
# RUN pnpm generate
RUN yarn config set registry https://registry.npmmirror.com
RUN yarn
RUN pnpm generate
# RUN yarn config set registry https://registry.npmmirror.com
# RUN yarn
# RUN yarn build
RUN yarn generate
# RUN yarn generate

View File

@ -28,19 +28,19 @@ export default defineNuxtConfig({
// clientDB: true
// }
// },
image: {
// provider:"static"
},
// image: {
// // provider:"static"
// },
// optimizedImages: {
// optimizeImages: true
// },
experimental: {
// when using generate, payload js assets included in sw precache manifest
// but missing on offline, disabling extraction it until fixed
payloadExtraction: false,
inlineSSRStyles: false,
renderJsonPayloads: true,
},
// experimental: {
// // when using generate, payload js assets included in sw precache manifest
// // but missing on offline, disabling extraction it until fixed
// payloadExtraction: false,
// inlineSSRStyles: false,
// renderJsonPayloads: true,
// },
components: [{
path: '~/components',

View File

@ -20,7 +20,7 @@
"sass": "^1.62.1",
"swiper": "^9.2.4",
"unity-webgl": "^3.4.2",
"vue-tsc": "^1.2.0",
"vue-tsc": "^2.0.7",
"vue-unity-webgl": "^1.2.0"
},
"devDependencies": {
@ -28,19 +28,17 @@
"@iconify-json/carbon": "^1.1.16",
"@iconify-json/twemoji": "^1.1.11",
"@nuxt/content": "^2.6.0",
"@nuxt/devtools": "^0.4.0",
"@nuxtjs/color-mode": "^3.2.0",
"@nuxtjs/i18n": "8.0.0-beta.11",
"@nuxtjs/i18n": "8.3.1",
"@nuxtjs/strapi": "^1.9.1",
"@pinia/nuxt": "^0.4.8",
"@unocss/eslint-config": "0.52.4",
"@unocss/nuxt": "0.52.4",
"@unocss/nuxt": "0.60.3",
"@vite-pwa/nuxt": "^0.0.7",
"@vue-macros/nuxt": "^1.2.8",
"@vueuse/nuxt": "^9.13.0",
"consola": "^3.0.1",
"eslint": "^8.38.0",
"nuxt": "^3.4.0",
"nuxt": "^3.11.2",
"pinia": "^2.0.34",
"serve": "14.2.0",
"typescript": "^4.9.5",