Add new files and update configurations

This commit is contained in:
Andras Bacsai
2024-03-14 15:01:54 +01:00
parent 33035a1ea9
commit e1556abff0
19 changed files with 9668 additions and 76 deletions

View File

@@ -1,75 +0,0 @@
# Nuxt 3 Minimal Starter
Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.
## Setup
Make sure to install the 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
npm run dev
# pnpm
pnpm run dev
# yarn
yarn dev
# bun
bun run dev
```
## Production
Build the application for production:
```bash
# npm
npm run build
# pnpm
pnpm run build
# yarn
yarn build
# bun
bun run build
```
Locally preview production build:
```bash
# npm
npm run preview
# pnpm
pnpm run preview
# yarn
yarn preview
# bun
bun run preview
```
Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.

6
nuxt/server/README.md Normal file
View 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.

View File

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@@ -0,0 +1,3 @@
{
"extends": "../.nuxt/tsconfig.server.json"
}

View File

@@ -1,3 +1,4 @@
{
"extends": "../.nuxt/tsconfig.server.json"
// https://nuxt.com/docs/guide/concepts/typescript
"extends": "./.nuxt/tsconfig.json"
}

24
nuxt/static/.gitignore vendored Normal file
View File

@@ -0,0 +1,24 @@
# Nuxt dev/build outputs
.output
.data
.nuxt
.nitro
.cache
dist
# Node dependencies
node_modules
# Logs
logs
*.log
# Misc
.DS_Store
.fleet
.idea
# Local env files
.env
.env.*
!.env.example

7
nuxt/static/README.md Normal file
View File

@@ -0,0 +1,7 @@
# Coolify Configuration
Check [nuxt.config.js](./nuxt.config.js).
1. Use `Nixpacks`.
2. Turn on `Is it a static site?`.
4. Set `Publish Directory` to `/.output/public`.

5
nuxt/static/app.vue Normal file
View File

@@ -0,0 +1,5 @@
<template>
<div>
<NuxtWelcome />
</div>
</template>

View File

@@ -0,0 +1,7 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
nitro: {
static: true
},
devtools: { enabled: true }
})

9593
nuxt/static/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

18
nuxt/static/package.json Normal file
View File

@@ -0,0 +1,18 @@
{
"name": "nuxt-app",
"private": true,
"type": "module",
"scripts": {
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare",
"start": "node .output/server/index.mjs"
},
"dependencies": {
"nuxt": "^3.10.3",
"vue": "^3.4.19",
"vue-router": "^4.3.0"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@@ -0,0 +1,3 @@
{
"extends": "../.nuxt/tsconfig.server.json"
}