Skip to content

Commit

Permalink
fix: bump cdn script to the latest client version
Browse files Browse the repository at this point in the history
  • Loading branch information
rehanvdm committed Mar 18, 2024
1 parent fa418ba commit c212908
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
8 changes: 4 additions & 4 deletions application/src/frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion application/src/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"npm-run-all": "^4.1.5",
"pinia": "^2.1.7",
"plotly.js-dist-min": "^2.29.1",
"serverless-website-analytics-client": "^1.6.1",
"serverless-website-analytics-client": "^1.7.0",
"typescript": "^5.3.3",
"vite": "^5.1.4",
"esbuild": "^0.20.1",
Expand Down
15 changes: 15 additions & 0 deletions docs/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,3 +195,18 @@ there were some strange results with tRPC not typing correctly.
The API will always return `null` to indicate that a value is not set. A value of `undefined` will indicate that the
value is not set and that the key is not present in the object. This is important for the PageFilter and EventFilter.
A value of `null` will search where that column has no value and `undefined` will ignore that column from the search.

## SOP
Standard Operation Procedures (SOP) for common tasks.

### Updating the client script

In the client project:
```
cd packge
npm run package
```
Copy the `dist/cdn/client-script.js` to the `application/src/frontend/public/cdn`

Also update the version of the `serverless-website-analytics-client` in the `application/src/frontend/package.json`
which is used by the site itself to track own usage of the dashboard if enabled.

0 comments on commit c212908

Please sign in to comment.