it-at-m / digiwf-project

Project repo for the DigiWF project automation platform.
MIT License
10 stars 1 forks source link

[bug] https://digiwf.muenchendigital.io/ is broken #234

Closed xdoo closed 2 years ago

xdoo commented 2 years ago

Describe the bug The Landing Page is broken (404). image

The problem is, that index.html in branch gh-pages is missing:

image

The workflow (workflows/cd.yml) calls yarn generate:

image

I can't reproduce this on my local machine. If I check out main an run yarn generate, an index.html is in dist.

To Reproduce Call the Landing Page

Expected behavior I want to see this:

image

Screenshots If applicable, add screenshots to help explain your problem.

xdoo commented 2 years ago

@lmoesle could you have a look at this?

lmoesle commented 2 years ago

The upgrade from version 1 to 2 of @nuxt/content did not go well. It seems that the api changed and we have to refactor our code. As a temporary solution I prepared a downgrade of @nuxt/contents version https://github.com/it-at-m/digiwf-project/pull/235

I get the following error:

ℹ Full static generation activated                                                                                                                                                                         20:41:53
ℹ Generating output directory: dist/                                                                                                                                                                       20:41:53
ℹ Generating pages with full static mode                                                                                                                                                                   20:41:53

 ERROR   /de                                                                                                                                                                                               20:41:54

TypeError: $content is not a function
    at asyncData (pages/index.vue:89:0)
    at promisify (node_modules/.cache/nuxt/utils.js:304:0)
    at server.js:15143:23
    at Array.map (<anonymous>)
    at module.exports.__webpack_exports__.default (node_modules/.cache/nuxt/server.js:231:0)
    at runNextTicks (node:internal/process/task_queues:61:5)
    at listOnTimeout (node:internal/timers:528:9)
    at processTimers (node:internal/timers:502:7)

 ERROR  $content is not a function                                                                                                                                                                         20:41:54

  at asyncData (pages/index.vue:89:0)
  at promisify (node_modules/.cache/nuxt/utils.js:304:0)
  at server.js:15143:23
  at Array.map (<anonymous>)
  at module.exports.__webpack_exports__.default (node_modules/.cache/nuxt/server.js:231:0)
  at runNextTicks (node:internal/process/task_queues:61:5)
  at listOnTimeout (node:internal/timers:528:9)
  at processTimers (node:internal/timers:502:7)

 ERROR   /                                                                                                                                                                                                 20:41:54

TypeError: $content is not a function
    at asyncData (pages/index.vue:89:0)
    at promisify (node_modules/.cache/nuxt/utils.js:304:0)
    at server.js:15143:23
    at Array.map (<anonymous>)
    at module.exports.__webpack_exports__.default (node_modules/.cache/nuxt/server.js:231:0)

 ERROR  $content is not a function                                                                                                                                                                         20:41:54

  at asyncData (pages/index.vue:89:0)
  at promisify (node_modules/.cache/nuxt/utils.js:304:0)
  at server.js:15143:23
  at Array.map (<anonymous>)
  at module.exports.__webpack_exports__.default (node_modules/.cache/nuxt/server.js:231:0)