Skip to content

Is there a way to rename public and build folders? #2394

Closed
@apieceofbart

Description

@apieceofbart

I am trying to setup gitlab pages deployment.

I would like to keep source files of my project in repo and have a CI script that runs npm run build to create a fresh version each time I commit something. The problem is that gitlabs CI expects the served files to be in public folder which is already taken by create-react-app.
Ideally I would change public folder to something else and have the npm run build command output the files to public folder instead of build.
Before I eject - do you know if this is possible without ejecting? Thanks for help

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