-
Notifications
You must be signed in to change notification settings - Fork 27
Change default port to 3001 #229
Copy link
Copy link
Closed
Description
We are using the port 3000 as the default, but the front-end also uses the port 3000.
For that reason, we have to overwrite the port in the nuxt scripts:
{
"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"
}
}The npm run dev command starts the frontend app using port 3001.
I think we can change the default port here to 3001 to avoid collisions with the default nuxt configuration.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
No status