generated from gitea_admin/default
115 lines
1.6 KiB
Markdown
115 lines
1.6 KiB
Markdown
# Nuxt Minimal Starter
|
|
|
|
Look at the [Nuxt documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.
|
|
|
|
## Setup
|
|
|
|
Make sure to install dependencies:
|
|
|
|
```bash
|
|
# npm
|
|
npm install
|
|
|
|
# pnpm
|
|
pnpm install
|
|
|
|
# yarn
|
|
yarn install
|
|
|
|
# bun
|
|
bun install
|
|
```
|
|
|
|
## Development Server
|
|
|
|
Start the development server on `http://localhost:3000`:
|
|
|
|
```bash
|
|
# npm sur l'ordinateur en local
|
|
npm run dev
|
|
=> Local: http://localhost:3000
|
|
|
|
# npm Nuxt en mode développement avec accès depuis ton téléphone, tablette ...
|
|
npx nuxt dev --host
|
|
=> Network: http://192.168.1.24:3000
|
|
|
|
# pnpm
|
|
pnpm dev
|
|
|
|
# yarn
|
|
yarn dev
|
|
|
|
# bun
|
|
bun run dev
|
|
```
|
|
|
|
## Production
|
|
|
|
Build the application for production:
|
|
|
|
```bash
|
|
# npm
|
|
npm run build
|
|
|
|
# pnpm
|
|
pnpm build
|
|
|
|
# yarn
|
|
yarn build
|
|
|
|
# bun
|
|
bun run build
|
|
```
|
|
|
|
Locally preview production build:
|
|
|
|
```bash
|
|
# npm
|
|
npm run preview
|
|
|
|
# pnpm
|
|
pnpm preview
|
|
|
|
# yarn
|
|
yarn preview
|
|
|
|
# bun
|
|
bun run preview
|
|
```
|
|
|
|
Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.
|
|
|
|
|
|
image: {
|
|
// Domaine de tes images Strapi / OVH
|
|
domains: [
|
|
'media.orchestre-ile.com' // passe par le reverse proxy plus tard
|
|
],
|
|
quality: 80,
|
|
format: ['webp', 'avif', 'jpeg', 'jpg', 'png', 'gif' ],
|
|
screens: {
|
|
xs: 320,
|
|
sm: 640,
|
|
md: 768,
|
|
lg: 1024,
|
|
xl: 1280,
|
|
xxl: 1536,
|
|
'2xl': 1536
|
|
},
|
|
presets: {
|
|
full: {
|
|
modifiers: {
|
|
fit: 'cover',
|
|
}
|
|
},
|
|
avatar: {
|
|
modifiers: {
|
|
fit: 'cover',
|
|
format: 'jpg',
|
|
width: 50,
|
|
height: 50
|
|
}
|
|
}
|
|
},
|
|
densities: [1, 2],
|
|
}, |