Skip to content

Latest commit

 

History

History
14 lines (7 loc) · 507 Bytes

File metadata and controls

14 lines (7 loc) · 507 Bytes

Migrating Server Routes to Nuxt 3

Background

Nuxt 3 introduces a new server engine and HTTP framework. This shift necessitates the conversion of all server routes to the new format. This exercise will guide you through the process of migrating server routes from a Nuxt 2 setup to Nuxt 3.

Exercise

👨‍💼 Transitioning server routes ensures seamless server-side operations. Let's embark on this migration journey.

Steps:

  1. Migrate ~/server/api/post.js to server api in Nuxt 3