Skip to content

Commit

Permalink
fix: minor bugs & update: static routes
Browse files Browse the repository at this point in the history
  • Loading branch information
cern committed Apr 25, 2023
1 parent 998ef37 commit 4bdb131
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion env.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ module.exports = {
// 生产环境
pro: {
NODE_ENV: 'production',
API_URL: 'https://*****.com/'
API_URL: 'https://cdn.jsdelivr.net/gh/adamaxiao/test@main'
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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%
);
}
Expand Down
File renamed without changes
File renamed without changes
10 changes: 10 additions & 0 deletions static/routes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"routes": [],
"platformErrorOverrides": [
{
"errorType": "NotFound",
"serve": "/200.html",
"statusCode": 200
}
]
}

0 comments on commit 4bdb131

Please sign in to comment.