lansingcodes / www

Events and resources for Lansing coders
https://www.lansing.codes
Other
7 stars 16 forks source link

Replace mode: spa with ssr: false in nuxt.config.js #159

Open egillespie opened 2 years ago

egillespie commented 2 years ago

Describe the bug

From the Nuxt output in the terminal when running npm run dev:

 WARN  mode option is deprecated. Please use ssr: true for universal mode or ssr: false for spa mode and remove mode from nuxt.config

To Fix

The www project uses some features that do not work with SSR. The solution here is to replace mode: spa, with ssr: false, in nuxt.config.js.

Afterwards, rerun npm run dev to make sure the warning in the terminal goes away (and that the site still runs).