FediGONE for ff.v-sli.me.
docs | ||
public | ||
src | ||
.eslintrc.json | ||
.gitignore | ||
.prettierrc | ||
astro.config.mjs | ||
bun.lockb | ||
package.json | ||
README.md | ||
tailwind.config.ts | ||
tsconfig.json | ||
vercel.json |
Usage 💨
You need to write src/consts.ts
according to your instance information.
Warning
You shouldn't edit
dist/vercel.json
. If you changed this file, your activity pub server can't be return 410 GONE.
git clone https://git.v-sli.me/HidemaruOwO/FediGONE.git
cd FediGONE
# edit src/consts.ts for your AP instance
vim src/consts.ts
# export static HTML files
bun run install
bun run build
# create vercel.json on dist directory
ln vercel.json dist/vercel.json
# deploy FediGONE on vercel
cd dist
vercel deploy --prod
View default src/consts.ts
export const DOMAIN = "ap.example.tld";
export const TITLE = "インスタンスの墓標";
export const DESCRIPTION = `このインスタンスは閉鎖しました。"${DOMAIN}"を支えていただきありがとうございました。`;
export const MAIN_MESSAGE_LINE: string[] = [
`このインスタンスは滅んでしまったようです。`,
`ここにあるのは、`,
`インスタンスの墓標です。`,
];
export const NEXT_INSTANCE_URL = "https://new.example.tld";
export const NEXT_INSTANCE_MESSAGE = "新しいインスタンスに進む";
Dependencies 🪡
requirements bun
or nodejs
for build astro project.
bun
nodejs