Skip to content

Duplicated getServerSideProps function and clunky imports / config option retrieval in client #417

@simeoncarstens

Description

@simeoncarstens

In app/client/pages/{job,dash,results}.js, there is duplicated code, namely the getServerSideProps function. Furthermore, in #415, I struggled to find a consistent way to retrieve the require_auth option from next.config.js and to import / require firebaseClient and firebaseAdmin only when they are needed.
All of these work, but should be refactored.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clientRelated to the front-endjavascriptPull requests that update Javascript code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions