最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Strapi v5 - How to run 2 projects in dev? - Stack Overflow

programmeradmin0浏览0评论

I run a first project with "npm run develop".

When I try to run a second one I got an error due to port 5173 not available.

I follow this doc

to change the port of this 2nd project

  return mergeConfig(config, {
    resolve: {
      alias: {
        '@': '/src',
      },
    },
    server: {
        port: 5174, 
        clientPort: 5174,
    hmr: {
        enabled: true,
        port: 5174,
        clientPort: 5174,
    },
    },
  });
};

But got the same error, this project tries also to use port 5173!

What I did wrong? What should be the right method?

Thanks in advance for any help.

发布评论

评论列表(0)

  1. 暂无评论