Skip to content

Prevent server leak #126

Open
Open
@eric-burel

Description

@eric-burel

Is your feature request related to a problem? Please describe.
Currently: server folder or server.ts means server-only code => but we don't strictly enforce that so there's a risk of leak

Describe the solution you'd like
Prevent user from accidentally loading server-only code client-side

Describe alternatives you've considered

  • An eslint rule that detect that you are not in a "server" file (no server folder/no server.ts) but you import a "server" code accidentally
  • A webpack plugin that fails the client bundle if server code is detected

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions