Vitesse for Nuxt 3
References:
- https://github.com/antfu/vitesse-nuxt3
- https://github.com/element-plus/element-plus-nuxt-starter
- https://github.com/bicouy0/nuxt3-urql
- https://github.com/newbeea/nuxt3-apollo-starter
π§ͺ Working in Progress
-
π Nuxt 3 - SSR, ESR, File-based routing, components auto importing, modules, etc.
-
π i18n, powered by @nuxtjs/i18n.
-
β‘οΈ Vite - Instant HMR
-
π¨ UnoCSS - The instant on-demand atomic CSS engine.
-
π¦ Element Plus - Vue 3 UI component library.
-
π Use icons from any icon sets in Pure CSS, powered by UnoCSS.
-
π₯ The
<script setup>
syntax. -
π State Management via Pinia, see ./composables/user.ts.
-
π Layout system.
-
π VueUse - collection of useful composition APIs
-
π RxJS
-
π₯ APIs auto importing - for Composition API, VueUse and custom composables.
-
π Zero-config cloud functions and deploy.
-
π¦Ύ TypeScript, of course.
-
π² PWA with offline support and auto update behavior.
- VueUse - collection of useful composition APIs.
- ColorMode - dark and Light mode with auto detection made easy with Nuxt.
- UnoCSS - the instant on-demand atomic CSS engine.
- Pinia - intuitive, type safe, light and flexible Store for Vue.
- VitePWA - zero-config PWA Plugin for Nuxt 3.
- DevTools - unleash Nuxt Developer Experience.
We recommend using VS Code with Volar to get the best experience (You might want to disable Vetur if you have it).
- vitesse - Opinionated Vite Starter Template
- vitesse-lite - Lightweight version of Vitesse
- vitesse-nuxt-bridge - Vitesse for Nuxt 2 with Bridge
- vitesse-webext - WebExtension Vite starter template
Create a repo from this template on GitHub.
If you prefer to do it manually with the cleaner git history
npx degit antfu/vitesse-nuxt3 my-nuxt3-app
cd my-nuxt3-app
pnpm i # If you don't have pnpm installed, run: npm install -g pnpm
npm run dev
Website: http://127.0.0.1:3000
build
npm run build
start
npm run start
set cdnURL in nuxt.config.ts
npm run build:lambda
upload .output/server/public/* to cdn (cdnURL)
config customDomain in serverless.yml
custom:
customDomain:
http:
domainName: xxx.yourdomain.com
endpointType: regional
certificateName: yourdomain.com
createRoute53Record: true
plugins:
- serverless-domain-manager
then
npm run serverless:domain
npm run serverless:deploy
then visit xxx.yourdomain.com