mirror of
https://github.com/coollabsio/coolify-examples.git
synced 2026-02-19 05:48:58 +00:00
7
nuxt/nitro/.gitignore
vendored
Normal file
7
nuxt/nitro/.gitignore
vendored
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
node_modules
|
||||||
|
dist
|
||||||
|
.data
|
||||||
|
.nitro
|
||||||
|
.cache
|
||||||
|
.output
|
||||||
|
.env
|
||||||
2
nuxt/nitro/.npmrc
Normal file
2
nuxt/nitro/.npmrc
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
shamefully-hoist=true
|
||||||
|
strict-peer-dependencies=false
|
||||||
6
nuxt/nitro/README.md
Normal file
6
nuxt/nitro/README.md
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
# Coolify Configuration
|
||||||
|
|
||||||
|
1. Use `Nixpacks`.
|
||||||
|
2. Set `Ports Exposed` to `3000` (or any port you set).
|
||||||
|
3. Set `Start Command` to `node .output/server/index.mjs`
|
||||||
|
- Alternatively, you can set the `start` script inside `package.json` to `node .output/server/index.mjs`. Then Nixpacks will automatically use it as the start command.
|
||||||
4
nuxt/nitro/nitro.config.ts
Normal file
4
nuxt/nitro/nitro.config.ts
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
//https://nitro.unjs.io/config
|
||||||
|
export default defineNitroConfig({
|
||||||
|
srcDir: "server"
|
||||||
|
});
|
||||||
13
nuxt/nitro/package.json
Normal file
13
nuxt/nitro/package.json
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
||||||
3015
nuxt/nitro/pnpm-lock.yaml
generated
Normal file
3015
nuxt/nitro/pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
3
nuxt/nitro/server/api/v1/health/index.get.ts
Normal file
3
nuxt/nitro/server/api/v1/health/index.get.ts
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
export default defineEventHandler((event) => {
|
||||||
|
return 'OK'
|
||||||
|
})
|
||||||
3
nuxt/nitro/server/routes/index.ts
Normal file
3
nuxt/nitro/server/routes/index.ts
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
export default eventHandler((event) => {
|
||||||
|
return "Start by editing <code>server/routes/index.ts</code>.";
|
||||||
|
});
|
||||||
4
nuxt/nitro/tsconfig.json
Normal file
4
nuxt/nitro/tsconfig.json
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
// https://nitro.unjs.io/guide/typescript
|
||||||
|
{
|
||||||
|
"extends": "./.nitro/types/tsconfig.json"
|
||||||
|
}
|
||||||
3
nuxt/server/server/api/v1/health/index.get.ts
Normal file
3
nuxt/server/server/api/v1/health/index.get.ts
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
export default defineEventHandler((event) => {
|
||||||
|
return 'OK'
|
||||||
|
})
|
||||||
Reference in New Issue
Block a user