Skip to content

[Feature?]: Security Concern: Local File Paths Exposed in Build Output #1858

@thinke5

Description

@thinke5

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Summary 💡

Description

The compiled JS files in 'use server' builds contain absolute local machine paths (e.g., /home/user/project/src/...). This may leak sensitive information about the development environment and poses potential security risks if deployed publicly.

Steps to Reproduce

Run npm run build with default configuration.
Check generated .js files – absolute paths are visible.

Expected Behavior

Sensitive local paths should be hidden or replaced with anonymized placeholders (e.g., XXX/src/...).

Examples 🌈

No response

Motivation 🔦

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions