Look at the Nuxt 3 documentation to learn more.
Example in components/MyImages.vue
Images with non-url friendly characters in filename can't be found during npm run build
.
Example of filename with +
in name is escaped but not found.
Errors prerendering:
├─ /_ipx/** (6ms) nitro 7:31:20 PM
│ └── Error: [400] IPX_MISSING_ID
├─ /_ipx/w_400/example/f2-a%2Bmber-kipp-75715CVEJhI-unsplash.jpg (8ms) nitro 7:31:20 PM
│ ├── Error: [404] IPX_FILE_NOT_FOUND
│ └── Linked from /
├─ /_ipx/w_800/example/f2-a%2Bmber-kipp-75715CVEJhI-unsplash.jpg (8ms) nitro 7:31:20 PM
│ ├── Error: [404] IPX_FILE_NOT_FOUND
│ └── Linked from /
Make sure to install the dependencies:
# npm
npm install
# pnpm
pnpm install
# yarn
yarn install
# bun
bun install
Start the development server on http://localhost:3000
:
# npm
npm run dev
# pnpm
pnpm run dev
# yarn
yarn dev
# bun
bun run dev
Build the application for production:
# npm
npm run build
# pnpm
pnpm run build
# yarn
yarn build
# bun
bun run build
Locally preview production build:
# npm
npm run preview
# pnpm
pnpm run preview
# yarn
yarn preview
# bun
bun run preview
Check out the deployment documentation for more information.