diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3265767..8ddda69 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -15,6 +15,7 @@ jobs: API_URI: ${{ secrets.API_URI }} HOME_PORT: ${{ secrets.HOME_PORT }} API_PORT: ${{ secrets.API_PORT }} + NITRO_PORT: ${{ secrets.HOME_PORT }} runs-on: self-hosted steps: - uses: actions/checkout@v4 diff --git a/nuxt.config.js b/nuxt.config.js index 17f98cf..8014d06 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -20,7 +20,7 @@ export default defineNuxtConfig({ runtimeConfig: { public: { HOME_URI: process.env.HOME_URI || 'http://localhost:4001', - API_URI: process.env.API_URL || 'http://localhost:4002', + API_URI: process.env.API_URI || 'http://localhost:4002', }, }, server: { diff --git a/package.json b/package.json index 4f70338..7cb85fd 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "dev:client": "nuxt dev", "dev:server": "npx nodemon api.js", "build": "nuxt build", - "start": "npx concurrently \"node ./.output/server/index.mjs\" \"node api.js\"", + "start": "npx concurrently \"node --env-file=.env ./.output/server/index.mjs\" \"node api.js\"", "generate": "nuxt generate", "lint": "eslint .", "lint:fix": "eslint . --fix",