Skip to content

public folder is not copied on build #82

@aheissenberger

Description

@aheissenberger

Describe the bug

I have a public folder which is defined in react-server.config.json

{
    "root": "src/pages",
    "public": "src/public"
}

no problem with react-server dev

react-server build will create a working .react-server/dist but the public folder is missing.

Reproduction

https://github.com/aheissenberger/bug-rs-static-reder-demo

Steps to reproduce

pnpm build

System Info

System:
    OS: macOS 15.1.1
    CPU: (12) arm64 Apple M4 Pro
    Memory: 9.61 GB / 48.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 23.3.0 - /opt/homebrew/bin/node
    Yarn: 1.22.22 - /opt/homebrew/bin/yarn
    npm: 10.9.0 - /opt/homebrew/bin/npm
    pnpm: 9.14.4 - /opt/homebrew/bin/pnpm
    bun: 1.1.38 - /opt/homebrew/bin/bun
  Browsers:
    Chrome: 131.0.6778.108
    Safari: 18.1.1
    Safari Technology Preview: 18.2
  npmPackages:
    @lazarv/react-server: 0.0.0-experimental-3955213-20241116-c7cdeda5 => 0.0.0-experimental-3955213-20241116-c7cdeda5

Used Package Manager

pnpm

Logs

No response

Validations

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions