From 4bdb1317aeaf46a9db885409beb9f7b354af7ff2 Mon Sep 17 00:00:00 2001 From: zaofei Date: Wed, 26 Apr 2023 01:16:52 +0800 Subject: [PATCH] fix: minor bugs & update: static routes --- env.js | 2 +- package.json | 2 +- pages/index.vue | 2 +- static/{ => images}/Dionysus.png | Bin static/{ => images}/bieji.jpg | Bin static/routes.json | 10 ++++++++++ 6 files changed, 13 insertions(+), 3 deletions(-) rename static/{ => images}/Dionysus.png (100%) rename static/{ => images}/bieji.jpg (100%) create mode 100644 static/routes.json diff --git a/env.js b/env.js index fbf74d6..506b756 100644 --- a/env.js +++ b/env.js @@ -7,6 +7,6 @@ module.exports = { // 生产环境 pro: { NODE_ENV: 'production', - API_URL: 'https://*****.com/' + API_URL: 'https://cdn.jsdelivr.net/gh/adamaxiao/test@main' } } diff --git a/package.json b/package.json index 786502d..f9add31 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "dev": "cross-env NODE_ENV=dev nuxt --open", "build": "cross-env NODE_ENV=pro nuxt build", "start": "cross-env NODE_ENV=pro nuxt start", - "generate": "nuxt generate", + "generate": "cross-env NODE_ENV=pro nuxt generate", "lint:js": "eslint --ext \".js,.vue\" --ignore-path .gitignore .", "lint": "yarn lint:js", "lintfix": "yarn lint:js --fix" diff --git a/pages/index.vue b/pages/index.vue index a2001ae..e274d72 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -206,7 +206,7 @@ body, --transparent: url(data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==); background-image: -webkit-cross-fade( var(--transparent), - url('../static/Dionysus.png'), + url('../static/images/Dionysus.png'), 100% ); } diff --git a/static/Dionysus.png b/static/images/Dionysus.png similarity index 100% rename from static/Dionysus.png rename to static/images/Dionysus.png diff --git a/static/bieji.jpg b/static/images/bieji.jpg similarity index 100% rename from static/bieji.jpg rename to static/images/bieji.jpg diff --git a/static/routes.json b/static/routes.json new file mode 100644 index 0000000..0a1b16a --- /dev/null +++ b/static/routes.json @@ -0,0 +1,10 @@ +{ + "routes": [], + "platformErrorOverrides": [ + { + "errorType": "NotFound", + "serve": "/200.html", + "statusCode": 200 + } + ] + }