Skip to content

Commit

Permalink
In the upgrade from Astro 2 to 3, Astro updated their default port fr…
Browse files Browse the repository at this point in the history
…om 3000 to 4321. Updating Astro default port references.
  • Loading branch information
felder101 committed Jun 4, 2024
1 parent 80bc62f commit 0a30470
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ SMTP_USER="<ethereal-account-email-address>"
```

#### 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!**

Expand Down
2 changes: 1 addition & 1 deletion dev/uaa/uaa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions training-front-end/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
2 changes: 1 addition & 1 deletion training-front-end/src/services/auth.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions training/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
Expand Down

0 comments on commit 0a30470

Please sign in to comment.