From 0a304708152820111d7d0c5ece66b482cdb48ba0 Mon Sep 17 00:00:00 2001 From: Dan Felder Date: Tue, 4 Jun 2024 16:42:35 -0400 Subject: [PATCH] In the upgrade from Astro 2 to 3, Astro updated their default port from 3000 to 4321. Updating Astro default port references. --- README.md | 4 ++-- dev/uaa/uaa.yml | 2 +- training-front-end/README.md | 4 ++-- training-front-end/src/services/auth.ts | 2 +- training/main.py | 6 +++--- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 1c9c1ba4..9f04ee09 100644 --- a/README.md +++ b/README.md @@ -22,9 +22,9 @@ SMTP_USER="" ``` #### Update the base url -For development, we need to update the `BASE_URL` environment value so that confirmation emails link back to the locally running application. By default, our web application will be running locally at port `3000` when in development: +For development, we need to update the `BASE_URL` environment value so that confirmation emails link back to the locally running application. By default, our web application will be running locally at port `4321` when in development: ```config -BASE_URL="http://localhost:3000" +BASE_URL="http://localhost:4321" ``` **Note the lack of a trailing slash!** diff --git a/dev/uaa/uaa.yml b/dev/uaa/uaa.yml index 447de445..58d32ae4 100644 --- a/dev/uaa/uaa.yml +++ b/dev/uaa/uaa.yml @@ -65,7 +65,7 @@ oauth: authorized-grant-types: authorization_code,refresh_token scope: openid authorities: uaa.none - redirect-uri: http://localhost:3000/auth_callback,http://localhost:3000 + redirect-uri: http://localhost:4321/auth_callback,http://localhost:4321 allowpublic: true issuer: diff --git a/training-front-end/README.md b/training-front-end/README.md index adbf66fb..3daaf53a 100644 --- a/training-front-end/README.md +++ b/training-front-end/README.md @@ -42,9 +42,9 @@ Cloud.gov will look for a `package.json` file in the root of the repo (the paren All commands are run from the root of the project, from a terminal: | Command | Action | -| :--------------------- | :----------------------------------------------- | +| :--------------------- |:-------------------------------------------------| | `npm install` | Installs dependencies | -| `npm run dev` | Starts local dev server at `localhost:3000` | +| `npm run dev` | Starts local dev server at `localhost:4321` | | `npm run build` | Build your production site to `../_site_/` | | `npm run preview` | Preview your build locally, before deploying | | `npm run test:unit` | Runs unit tests | diff --git a/training-front-end/src/services/auth.ts b/training-front-end/src/services/auth.ts index 0ba2e225..11365e53 100644 --- a/training-front-end/src/services/auth.ts +++ b/training-front-end/src/services/auth.ts @@ -1,4 +1,4 @@ -import { UserManager, User, UserManagerSettings } from 'oidc-client-ts' +import { UserManager, User, type UserManagerSettings } from 'oidc-client-ts' export default class AuthService { private userManager: UserManager diff --git a/training/main.py b/training/main.py index 8a00f88b..76fd01a2 100644 --- a/training/main.py +++ b/training/main.py @@ -11,9 +11,9 @@ origins = [ "http://localhost", "https://localhost", - "http://localhost:3000", - "https://localhost:3000", - "http://127.0.0.1:3000", + "http://localhost:4321", + "https://localhost:4321", + "http://127.0.0.1:4321", "https://training.smartpay.gsa.gov", "https://federalist-2e11f2c8-970f-44f5-acc8-b47ef6c741ad.sites.pages.cloud.gov" ]