Skip to content

Commit 3c3ac36

Browse files
committed
docs: expose sha for debugging
1 parent 2743c54 commit 3c3ac36

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

layouts/default.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ export default {
3939
name: "twitter:image:src",
4040
content: "https://webmention.app/webmention-app-card.jpg"
4141
},
42-
{ name: "twitter:card", content: "summary_large_image" }
42+
{ name: "twitter:card", content: "summary_large_image" },
43+
{ name: "sha", content: process.env.NOW_GITHUB_COMMIT_SHA },
4344
],
4445
link: [
4546
{

nuxt.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
2-
mode: 'universal',
2+
mode: 'spa',
33

44
generate: {
55
minify: {
@@ -22,7 +22,7 @@ module.exports = {
2222
css: [],
2323

2424
env: {
25-
API: process.env.API || 'http://localhost:3030/api',
25+
API: process.env.NODE_ENV === 'development' ? 'http://localhost:3030' : '',
2626
},
2727

2828
modules: ['@nuxtjs/markdownit', 'cookie-universal-nuxt'],

0 commit comments

Comments
 (0)