A node.js >= 18.x setup with pnpm is recommended.
$ pnpm install
π Edit Sanity Project ID to yours
// nuxt.config.ts
export default defineNuxtConfig({
// ...
image: {
sanity: {
projectId: 'your-sanity-projectId',
},
},
sanity: {
projectId: 'your-sanity-projectId',
},
// ...
});
$ pnpm run dev
# Running on http://localhost:3000
# or
$ pnpm run dev --host=0.0.0.0
# Running on http://localhost:3000
# Running on http://192.x.x.x:3000
# Server deployment (SSR)
$ pnpm run build
# Static deployment (Pre-rendered [No Server (/api) Route])
$ pnpm run generate
Source code distributed under MIT License. See LICENSE for more information.