feat: updated nuxt examples

This PR includes the addition of a health check API endpoint directly in the Nuxt example. This API endpoint can be used as an alternative to the default health check on port 80.

Beside the API feature I also included a Nitro example. Nitro can be run seperately from Nuxt. Allowing you to basically run Nuxt 'headless'. This extension of the existing example will go well with developers using Nuxt within the Coolify community.

This PR is complementary to my PR on the main Coolify documentation PR.
This commit is contained in:
h+
2024-07-27 21:52:06 +02:00
parent 899b20285b
commit 58677abc0c
10 changed files with 3060 additions and 0 deletions

13
nuxt/nitro/package.json Normal file
View File

@@ -0,0 +1,13 @@
{
"private": true,
"scripts": {
"build": "nitro build",
"dev": "nitro dev",
"prepare": "nitro prepare",
"preview": "node .output/server/index.mjs",
"start": "node .output/server/index.mjs"
},
"devDependencies": {
"nitropack": "latest"
}
}