Skip to content

[Bug?]: getRequestEvent().clientAddress in server functions is undefined in prod #2103

@samualtnorman

Description

@samualtnorman

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Current behavior 😯

you get undefined

Expected behavior 🤔

you get the client address

Steps to reproduce 🕹

Steps:

  1. Follow pnpm create solid
  2. Make a server function that uses getRequestEvent().clientAddress
  3. Make the client call it

Context 🔦

works fine in dev

Your environment 🌎

System:
    OS: NixOS 25.11 (Xantusia) x86_64
    CPU: 12th Gen Intel(R) Core(TM) i5-12500 (12) @ 4.60 GHz
Binaries:
    Node: 24.13.0
    pnpm: 10.28.2
npmPackages:
    @solidjs/router: 0.15.4
    @solidjs/start: 2.0.0-alpha.2
    @solidjs/vite-plugin-nitro-2: 0.1.0
    solid-js: 1.9.11
    vite: 7.3.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions