Update node app to server rendering mode to see if auth can work

This commit is contained in:
2021-01-26 22:36:15 +11:00
parent 9e9ae0df38
commit a6464748a3
4 changed files with 35 additions and 34 deletions
-1
View File
@@ -7,7 +7,6 @@ COPY . /app
RUN npm ci \
&& npm run build \
&& npm run generate \
&& npm prune --production \
&& curl -sf https://gobinaries.com/tj/node-prune | sh \
&& node-prune
+7 -3
View File
@@ -4,7 +4,7 @@ export default {
** Nuxt target
** See https://nuxtjs.org/api/configuration-target
*/
target: "static",
target: "server",
/*
** Headers of the page
** See https://nuxtjs.org/api/configuration-head
@@ -104,7 +104,11 @@ export default {
** Build configuration
** See https://nuxtjs.org/api/configuration-build/
*/
build: {},
build: {
babel: {
compact: true
}
},
auth: {
redirect: {
callback: "/callback",
@@ -140,7 +144,7 @@ export default {
server: {
port: 3000,
host: '0.0.0.0'
}
},
// router: {
// middleware: ['auth']
// }
+27 -29
View File
@@ -4152,20 +4152,19 @@
}
},
"@nuxtjs/auth-next": {
"version": "5.0.0-1602966760.822bc05",
"resolved": "https://registry.npmjs.org/@nuxtjs/auth-next/-/auth-next-5.0.0-1602966760.822bc05.tgz",
"integrity": "sha512-kjQSm7XiwtOYmIuukxqw5OcEC0Bph6ju91sH7KLlBrLm45IoFnFeQtl4O3RlJZUWd4AnqFjLsLbU44IUKCME7g==",
"version": "5.0.0-1611574754.9020f2a",
"resolved": "https://registry.npmjs.org/@nuxtjs/auth-next/-/auth-next-5.0.0-1611574754.9020f2a.tgz",
"integrity": "sha512-HPvUuTbzXdMee7quMgK789d+pMyoLaR6+2/m4p2Mn2fG/Vh27MIxjG0k7tff8+RIHJQ5VyCfaveGiX38zxuEHQ==",
"requires": {
"@nuxtjs/axios": "^5.12.0",
"@nuxtjs/axios": "^5.12.5",
"axios": "^0.21.1",
"body-parser": "^1.19.0",
"consola": "^2.14.0",
"consola": "^2.15.0",
"cookie": "^0.4.1",
"defu": "^2.0.4",
"js-cookie": "^2.2.1",
"jwt-decode": "^2.2.0",
"lodash": "^4.17.19",
"nanoid": "^3.1.10",
"requrl": "^2.0.1"
"defu": "^3.2.2",
"hasha": "^5.2.2",
"jwt-decode": "^3.1.2",
"requrl": "^3.0.2"
},
"dependencies": {
"cookie": {
@@ -4174,14 +4173,18 @@
"integrity": "sha512-ZwrFkGJxUR3EIoXtO+yVE69Eb7KlixbaeAWfBQB9vVsNn/o+Yw69gBWSSDK825hQNdN+wF8zELf3dFNl/kxkUA=="
},
"defu": {
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/defu/-/defu-2.0.4.tgz",
"integrity": "sha512-G9pEH1UUMxShy6syWk01VQSRVs3CDWtlxtZu7A+NyqjxaCA4gSlWAKDBx6QiUEKezqS8+DUlXLI14Fp05Hmpwg=="
"version": "3.2.2",
"resolved": "https://registry.npmjs.org/defu/-/defu-3.2.2.tgz",
"integrity": "sha512-8UWj5lNv7HD+kB0e9w77Z7TdQlbUYDVWqITLHNqFIn6khrNHv5WQo38Dcm1f6HeNyZf0U7UbPf6WeZDSdCzGDQ=="
},
"nanoid": {
"version": "3.1.20",
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.1.20.tgz",
"integrity": "sha512-a1cQNyczgKbLX9jwbS/+d7W8fX/RfgYR7lVWwWOGIPNgK2m0MWvrGF6/m4kk6U3QcFMnZf3RIhL0v2Jgh/0Uxw=="
"hasha": {
"version": "5.2.2",
"resolved": "https://registry.npmjs.org/hasha/-/hasha-5.2.2.tgz",
"integrity": "sha512-Hrp5vIK/xr5SkeN2onO32H0MgNZ0f17HRNH39WfL0SYUNOTZ5Lz1TJ8Pajo/87dYGEFlLMm7mIc/k/s6Bvz9HQ==",
"requires": {
"is-stream": "^2.0.0",
"type-fest": "^0.8.0"
}
}
}
},
@@ -11537,11 +11540,6 @@
"nopt": "^5.0.0"
}
},
"js-cookie": {
"version": "2.2.1",
"resolved": "https://registry.npmjs.org/js-cookie/-/js-cookie-2.2.1.tgz",
"integrity": "sha512-HvdH2LzI/EAZcUwA8+0nKNtWHqS+ZmijLA30RwZA0bo7ToCckjK5MkGhjED9KoRcXO6BaGI3I9UIzSA1FKFPOQ=="
},
"js-tokens": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
@@ -11710,9 +11708,9 @@
}
},
"jwt-decode": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/jwt-decode/-/jwt-decode-2.2.0.tgz",
"integrity": "sha1-fYa9VmefWM5qhHBKZX3TkruoGnk="
"version": "3.1.2",
"resolved": "https://registry.npmjs.org/jwt-decode/-/jwt-decode-3.1.2.tgz",
"integrity": "sha512-UfpWE/VZn0iP50d8cz9NrZLM9lSWhcJ+0Gt/nm4by88UL+J1SiKN8/5dkjMmbEzwL2CAe+67GsegCbIKtbp75A=="
},
"kind-of": {
"version": "6.0.3",
@@ -15095,9 +15093,9 @@
"integrity": "sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8="
},
"requrl": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/requrl/-/requrl-2.0.1.tgz",
"integrity": "sha512-l6iZwt1x7CN4TCyZqIbYS1o3tN5FRGnsvSSBOrtsmgS87f48J81AvRv6HGri79RHW4Ssim07fr+Fw08cYMWmsw=="
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/requrl/-/requrl-3.0.2.tgz",
"integrity": "sha512-f3gjR6d8MhOpn46PP+DSJywbmxi95fxQm3coXBFwognjFLla9X6tr8BdNyaIKNOEkaRbRcm0/zYAqN19N1oyhg=="
},
"resolve": {
"version": "1.17.0",
+1 -1
View File
@@ -11,7 +11,7 @@
},
"dependencies": {
"@nuxt/typescript-runtime": "^1.0.0",
"@nuxtjs/auth-next": "5.0.0-1602966760.822bc05",
"@nuxtjs/auth-next": "5.0.0-1611574754.9020f2a",
"@nuxtjs/axios": "^5.12.5",
"@nuxtjs/pwa": "^3.0.0-beta.20",
"bootstrap": "^4.5.0",