|
|
||
|---|---|---|
| composables | ||
| server | ||
| ssg_hooks | ||
| .env.example | ||
| .gitignore | ||
| README.md | ||
| app.vue | ||
| error.vue | ||
| nuxt.config.ts | ||
| package.json | ||
| tsconfig.json | ||
README.md
Nuxt Static Site Generation Boilerplate
Generate static site with content from Directus CMS.
Use the Directus MariaDB boilerplate to launch the CMS locally.
The files are retrieved and cached from Directus on build time.
Develop
Install the dependencies :
npm install
Create the .env file from .env.example
Work with
npm run dev
Create and populate the pages, public, components and assets folders.
Build the site in .output/public directory
npm run generate --prerender
Preview the freshly built site with
npx serve .output/public
Deploy
Deploy on a Debian VPS with the Deploy CDCN script.