Skip to content

ORIGIN value for adapter-node local previewing #11966

@hyunbinseo

Description

@hyunbinseo

Describe the bug

Current documentation suggests the following ORIGIN value.

# or e.g. for local previewing and testing
ORIGIN=http://localhost:3000 node build

However, running node build logs the following message:

node build
# Listening on 0.0.0.0:3000

When previewing the app from 0.0.0.0:3000, CSRF protection is triggered (as expected).


The following message is technically correct,

Listening on 0.0.0.0:3000

but the users should be guided to open the app in http://localhost:5173.

Reproduction

Reference above.

Logs

No response

System Info

System:
  OS: macOS 14.4
  CPU: (10) arm64 Apple M1 Pro
  Memory: 76.95 MB / 16.00 GB
  Shell: 5.9 - /bin/zsh
Binaries:
  Node: 20.11.1 - ~/.volta/tools/image/node/20.11.1/bin/node
  npm: 10.2.4 - ~/.volta/tools/image/node/20.11.1/bin/npm
  pnpm: 8.15.4 - ~/.volta/bin/pnpm
Browsers:
  Chrome: 122.0.6261.112
  Edge: 122.0.2365.80
  Safari: 17.4
npmPackages:
  @sveltejs/adapter-node: ^5.0.1 => 5.0.1 
  @sveltejs/kit: ^2.5.1 => 2.5.3 
  @sveltejs/vite-plugin-svelte: ^3.0.2 => 3.0.2 
  svelte: ^4.2.11 => 4.2.12 
  vite: ^5.1.4 => 5.1.5

Severity

annoyance

Additional Information

The 0.0.0.0:3000 part is clickable, but does not open the browser window (tab) in the VS Code console.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions