Scaup (frontend)
Configuration is done through environment variables:
NEXTAUTH_URL
: NextAuth instance URL. Usually the application's path, followed by/nextauth
NEXTAUTH_SECRET
: Random string used for generating the encrypted NextAuth JWT. Do not use the secret in.example.env
in productionOAUTH_CLIENT_ID
: OIDC client IDOAUTH_CLIENT_SECRET
: OIDC client secretOAUTH_COOKIE_NAME
: Authentication token cookie nameOAUTH_DISCOVERY_ENDPOINT
: OIDC discovery endpointOAUTH_PROFILE_INFO_ENDPOINT
: Microauth's profile endpoint. May be removed in the future if our auth solution provides profile info as well.SERVER_API_URL
: Scaup API URL from the server perspective. Note that relative paths such as /api cannot be used, since the user has no concept of relative paths. Paths must be absolute. This can be modified at runtime/deploy time.CONTACT_EMAIL
: Email for application support (like international shipments)NEXT_PUBLIC_API_URL
: SCAUP API URLNEXT_PUBLIC_DEV_CONTACT
: Developer contact emailNEXT_PUBLIC_APP_VERSION
: App versionPATO_URL
: URL of the PATo instance you want to target for redirectsSYNCHWEB_URL
: URL of the SynchWeb instance you want to target for redirects
Building the distribution files:
yarn install
yarn build
- Run
yarn test
- Create two environment variables,
PLAYWRIGHT_USERNAME
andPLAYWRIGHT_PASSWORD
containing the username and password you use to authenticate to Scaup. - Deploy the backend and frontend. Keep in mind that since these are full E2E tests, Expeye/Microauth must also be available.
- Run
yarn e2e
To run Next in development mode, run yarn dev
. If you don't have certificates set up, or if you're using self-signed certificates, Node might throw up errors and block connections. To avoid that, run NODE_TLS_REJECT_UNAUTHORIZED=0 yarn dev