How to change default port

sangemi
0
sangemi
commented 4 months ago

I start some app through some port.
package.json is like this.
"scripts": {
"dev": "nuxt -p=4400",

So after i installed blog module, i have to chage blog-module.js etc like this.

export default function NuxtModule(options) {
  const defaults = {
    base: 'http://localhost:4450',      <<<<<<<<<<<<<
    comments: false,
    ...

But this file is in node_modules directory.
Can i change above default port at nuxt.config.js ?

0
Informations
QuestionUnresolved
#c8 - Created 4 months ago