Disfactory / about.disfactory.tw

The legacy landing page of Disfactory
https://disfactory.github.io/about.disfactory.tw/
MIT License
6 stars 4 forks source link

Improve about page SEO #75

Open Yukaii opened 2 years ago

Yukaii commented 2 years ago
Yukaii commented 2 years ago

Find out SSG (target: static) is already enabled.

https://github.com/Disfactory/about.disfactory.tw/blob/98dea1ae5537cf726783d372833d41044ae82c3d/nuxt.config.js#L92

Yukaii commented 2 years ago

Found that full static mode must with ssr: true config

But with ssr on, nuxt generate would emit error:

/node_modules/echarts/core.js:20
export * from './lib/export/core.js';
^^^^^^

SyntaxError: Unexpected token 'export'
Yukaii commented 2 years ago

https://stackoverflow.com/questions/59347414/why-is-my-client-only-component-in-nuxt-complaining-that-window-is-not-define

Solve by client-only and process.client