Skip to content

nuxt docker 部署后 本地不能访问通过 http://localhost:3000/ 访问 #159

@wuweijia

Description

@wuweijia

需要更改 nuxt.config.js 配置

 server: {
    port: 8080,
    host: '0.0.0.0'
 }

或者更改 dockerfile
ENV HOST 0.0.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions