Compare commits
9 commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 62a0c45842 | |||
| 1262e971c4 | |||
| e097c27286 | |||
| 174f88776e | |||
| 5309732f80 | |||
| 98f6aaddcd | |||
| 0d0a27038f | |||
| 1bce80b7b5 | |||
| fc0c3fcc12 |
4 changed files with 14 additions and 4 deletions
2
.env.example
Normal file
2
.env.example
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
# replace with correct IP, and rename the file to .env
|
||||||
|
HOST=123.456.789.00
|
||||||
|
|
@ -33,6 +33,15 @@ $ pnpm i
|
||||||
|
|
||||||
For the script `npm run deploy`, you need to add an environmental variable named HOST containing the IP address of the host server. This will scp the build files into the server.
|
For the script `npm run deploy`, you need to add an environmental variable named HOST containing the IP address of the host server. This will scp the build files into the server.
|
||||||
|
|
||||||
|
You can do this by adding a `.env` file with the following content (replace the IP):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# .env
|
||||||
|
HOST=123.456.789.00
|
||||||
|
```
|
||||||
|
|
||||||
|
There is a service worker (`src/sw.mjs`) that caches assets on client browsers. For cache invalidation, the version property in package.json is used. Increment the version via `npm version patch` (or `minor`, `major`) if there is a significant change in the website's assets.
|
||||||
|
|
||||||
If you want to run build before deploying, do `npm run build:deploy`
|
If you want to run build before deploying, do `npm run build:deploy`
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "@ayco/personal-website",
|
"name": "@ayco/personal-website",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "1.3.6",
|
"version": "1.3.11",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"astro": "astro",
|
"astro": "astro",
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,7 @@ jay.bsky.team@bsky.brid.gy, true, false,
|
||||||
b0rk.jvns.ca@bsky.brid.gy, true, false,
|
b0rk.jvns.ca@bsky.brid.gy, true, false,
|
||||||
seldo.com@bsky.brid.gy, true, false,
|
seldo.com@bsky.brid.gy, true, false,
|
||||||
nerdy.dev@bsky.brid.gy, true, false,
|
nerdy.dev@bsky.brid.gy, true, false,
|
||||||
wongmjane.com@bsky.brid.gy, true, false,
|
samuel.fm@bsky.brid.gy, true, false,
|
||||||
samuel.bsky.team@bsky.brid.gy, true, false,
|
|
||||||
laurenshof.online@bsky.brid.gy, true, false,
|
laurenshof.online@bsky.brid.gy, true, false,
|
||||||
bell.bz@bsky.brid.gy, true, false,
|
bell.bz@bsky.brid.gy, true, false,
|
||||||
matrix.org@bsky.brid.gy, true, false,
|
matrix.org@bsky.brid.gy, true, false,
|
||||||
|
|
@ -32,6 +31,6 @@ intenttoship.dev@bsky.brid.gy, true, false,
|
||||||
element.io@bsky.brid.gy, true, false,
|
element.io@bsky.brid.gy, true, false,
|
||||||
e18e.dev@bsky.brid.gy, true, false,
|
e18e.dev@bsky.brid.gy, true, false,
|
||||||
danabra.mov@bsky.brid.gy, true, false,
|
danabra.mov@bsky.brid.gy, true, false,
|
||||||
heydonworks.bsky.social@bsky.brid.gy, true, false,
|
heydonworks.com@bsky.brid.gy, true, false,
|
||||||
danielroe.dev@bsky.brid.gy, true, false,
|
danielroe.dev@bsky.brid.gy, true, false,
|
||||||
patak.dev@bsky.brid.gy, true, false,
|
patak.dev@bsky.brid.gy, true, false,
|
||||||
|
|
|
||||||
|
Loading…
Reference in a new issue