Skip to content

Change default port back to 3000 #137

@josecelano

Description

@josecelano

The nuxt default port is 3000. We changed the nuxt dev --port 3001 script to use port 3001 because we were already using port 3000 for the backend API.

The problem is there are other scripts like npm run preview that still use port 3000.

As we do not have any problem changing the backend default port, I've created an issue to do it and set back the port to 3000 here so we do not need to overwrite nuxt default value.

{
  "private": true,
  "scripts": {
    "build": "nuxt build",
    "dev": "nuxt dev --port 3001",
    "generate": "nuxt generate",
    "preview": "nuxt preview",
    "postinstall": "nuxt prepare",
    "lint": "eslint --ext \".ts,.js,.vue\" --ignore-path .gitignore .",
    "lintfix": "eslint --fix --ext \".ts,.js,.vue\" --ignore-path .gitignore ."
  },
  "devDependencies": {
    "@nuxt/devtools": "latest",
    "@nuxtjs/eslint-config-typescript": "^12.0.0",
    "@nuxtjs/tailwindcss": "^6.8.0",
    "@tailwindcss/typography": "^0.5.9",
    "@types/marked": "^5.0.0",
    "@types/node": "^18",
    "@typescript-eslint/eslint-plugin": "^5.60.0",
    "@typescript-eslint/parser": "^5.60.0",
    "eslint": "^8.43.0",
    "eslint-plugin-vue": "^9.15.1",
    "i": "^0.3.7",
    "npm": "^9.7.2",
    "nuxt": "^3.6.0",
    "typescript": "^5.1.3",
    "vite-plugin-eslint": "^1.8.1"
  },
  "dependencies": {
    "@heroicons/vue": "^2.0.18",
    "daisyui": "^3.1.6",
    "marked": "^5.1.0",
    "notiwind-ts": "^2.0.2",
    "torrust-index-api-lib": "^0.2.0",
    "torrust-index-types-lib": "^0.2.0"
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions