Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

Commit

Permalink
refactor: client app readme, routing (#779)
Browse files Browse the repository at this point in the history
* refactor: minor clean up, add migration note in readme

* fix: resolve routing error on hard refresh

* refactor: updating web-dev-server config
  • Loading branch information
pattishin authored Feb 10, 2023
1 parent 5244c50 commit 1b7fa27
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions client-app/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Emblem Giving frontend application
# Emblem Giving frontend application ⚠️ (Migration pending)

## Quicklinks
* [Requirements](requirements)
Expand Down Expand Up @@ -124,7 +124,7 @@ If you would like to manually build & deploy, read on.
```bash
cd client-app/
gcloud set project $OPS_PROJECT // All images are in this registry
gcloud builds submit --tag $REGION-docker.pkg.dev/ $OPS_PROJECT/website/lit-based-website
gcloud builds submit --tag $REGION-docker.pkg.dev/$OPS_PROJECT/website/lit-based-website
```

### Auth server container
Expand All @@ -151,7 +151,7 @@ gcloud run deploy --image=$REGION-docker.pkg.dev/$OPS_PROJECT/website/lit-based-
```bash
cd server/
gcloud set project $OPS_PROJECT
gcloud run deploy --image=$REGION-docker.pkg.dev$OPS_PROJECT/website/lit-auth-api --port 4000
gcloud run deploy --image=$REGION-docker.pkg.dev/$OPS_PROJECT/website/lit-auth-api --port 4000
```

List of required environment variables and secrets needed to update each Cloud Run container in order to function properly.
Expand Down
6 changes: 5 additions & 1 deletion client-app/web-dev-server.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,12 @@ const hmr = process.argv.includes('--hmr');
const theme = process.env.THEME;

export default /** @type {import('@web/dev-server').DevServerConfig} */ ({
open: '/',
watch: !hmr,
port: 8081,
open: true,
rootDir: '.',
basePath: '/',
appIndex: 'index.html',
nodeResolve: {
exportConditions: ['browser', 'development']
},
Expand Down

0 comments on commit 1b7fa27

Please sign in to comment.