Skip to content

Commit 0ea5b4b

Browse files
committed
chore: vercel -> cloudflare & various updates
1 parent 87df80a commit 0ea5b4b

88 files changed

Lines changed: 17520 additions & 24300 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 5 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,6 @@
1-
# deps
2-
/node_modules
3-
4-
# generated content
5-
.contentlayer
6-
.content-collections
1+
.next
72
.source
8-
9-
# test & build
10-
/coverage
11-
/.next/
12-
/out/
13-
/build
14-
*.tsbuildinfo
15-
16-
# misc
17-
.DS_Store
18-
*.pem
19-
/.pnp
20-
.pnp.js
21-
npm-debug.log*
22-
yarn-debug.log*
23-
yarn-error.log*
24-
25-
# others
26-
.env*.local
27-
.vercel
28-
next-env.d.ts
29-
30-
content/docs/reference/(generated)/**/*.mdx
3+
node_modules
4+
out
5+
.env*
6+
.wrangler

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
# api-docs-v2
1+
# vrchat-community-new3
22

33
This is a Next.js application generated with
44
[Create Fumadocs](https://github.com/fuma-nama/fumadocs).
55

6+
It is a Next.js app with [Static Export](https://nextjs.org/docs/app/guides/static-exports) configured.
7+
68
Run development server:
79

810
```bash
@@ -20,7 +22,7 @@ Open http://localhost:3000 with your browser to see the result.
2022
In the project, you can see:
2123

2224
- `lib/source.ts`: Code for content source adapter, [`loader()`](https://fumadocs.dev/docs/headless/source-api) provides the interface to access your content.
23-
- `app/layout.config.tsx`: Shared options for layouts, optional but preferred to keep.
25+
- `lib/layout.shared.tsx`: Shared options for layouts, optional but preferred to keep.
2426

2527
| Route | Description |
2628
| ------------------------- | ------------------------------------------------------ |
@@ -42,4 +44,4 @@ resources:
4244
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js
4345
features and API.
4446
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
45-
- [Fumadocs](https://fumadocs.vercel.app) - learn about Fumadocs
47+
- [Fumadocs](https://fumadocs.dev) - learn about Fumadocs

content/docs/(sdks)/javascript.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ The VRChat.js SDK supports persistent sessions, allowing you to log in once and
168168

169169
By default, if you don't provide a `keyv` instance, the SDK uses an in-memory store, meaning your session data will be lost on restart. To persist sessions, pass a `keyv` instance when creating your `VRChat` client.
170170

171-
Any [Keyv-compatible adapter](https://npm.im/keyv/#official-storage-adapters) will work—such as [`keyv-file`](https://npm.im/keyv-file), [`@keyv/redis`](https://npm.im/@keyv/redis), or [`@keyv/postgres`](https://npm.im/@keyv/postgres). For this example, we'll use `keyv-file` to store cookies on disk.
171+
Any [Keyv-compatible adapter](https://npm.im/keyv/#official-storage-adapters) will work—such as [`keyv-file`](https://npm.im/keyv-file), [`keyv-cloudflare`](https://npm.im/keyv-cloudflare), [`@keyv/redis`](https://npm.im/@keyv/redis), or [`@keyv/postgres`](https://npm.im/@keyv/postgres). For this example, we'll use `keyv-file` to store cookies on disk.
172172

173173
Install it with:
174174

content/docs/index.mdx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: VRChat.community
33
icon: BookMarked
44
short_description: A community-driven project providing VRChat API documentation, SDKs, and developer resources.
5-
description: A community-driven project that provides documentation, tools, and resources for developers working with the VRChat API. This project fills the gap left by VRChat's lack of official API documentation and support.
5+
description: A community-driven project that provides documentation, tools, and resources for developers working with the VRChat API. This project fills the gap left by VRChat's lack of API documentation, tooling and support.
66
---
77

88
import { Cards, Card } from "fumadocs-ui/components/card";
@@ -13,13 +13,15 @@ import { SiDiscord } from "@icons-pack/react-simple-icons";
1313
import { sdks } from "@/sdks";
1414

1515
<Callout type="warn">
16-
**VRChat's API is not officially supported or documented by VRChat.** This documentation project
17-
is maintained on a best-effort basis by the community and attempts to smooth over API breakage by
18-
quickly updating when endpoints change.
19-
20-
Use responsibly and be aware that endpoints may still
21-
break without notice. Abuse of the API may result in account termination. For their official stance, refer to [VRChat's
22-
Creator Guidelines](https://hello.vrchat.com/creator-guidelines#api-usage).
16+
17+
**VRChat's API is not officially supported or documented by VRChat.** This documentation project
18+
is maintained on a best-effort basis by the community and attempts to smooth over API breakage by
19+
quickly updating when endpoints change. Use responsibly and be aware that endpoints may still
20+
break without notice.
21+
22+
Abuse of the API may result in account termination. For their official
23+
stance, refer to [VRChat's Creator Guidelines](https://hello.vrchat.com/creator-guidelines#api-usage).
24+
2325
</Callout>
2426

2527
## Resources

content/docs/meta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"index",
55
"(guides)/faq",
66
"(guides)/contributing",
7-
"...(sdks)",
87
"...(guides)",
8+
"...(sdks)",
99
"...reference"
1010
]
1111
}

eslint.config.mjs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
import { configure } from "@ariesclark/eslint-config";
1+
import { defineConfig, globalIgnores } from "eslint/config";
2+
import nextVitals from "eslint-config-next/core-web-vitals";
23

3-
export default configure({
4-
next: true,
5-
tailwind: false,
6-
});
4+
const eslintConfig = defineConfig([
5+
...nextVitals,
6+
globalIgnores([".next/**", "out/**", "build/**", "next-env.d.ts", ".source/**"]),
7+
]);
8+
9+
export default eslintConfig;

next-env.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/// <reference types="next" />
2+
/// <reference types="next/image-types/global" />
3+
import "./.next/types/routes.d.ts";
4+
5+
// NOTE: This file should not be edited
6+
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

next.config.mjs

Lines changed: 12 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -2,69 +2,20 @@ import { createMDX } from "fumadocs-mdx/next";
22

33
const withMDX = createMDX();
44

5-
const redirects = {
6-
"/docs/api": "/reference",
7-
"/docs/:path*": "/",
8-
9-
"/openapi/:operation": "/reference/:operation",
10-
"/openapi/:operation/:path*": "/reference/:operation#:path*",
11-
12-
"/contributing/openapi": "/contributing",
13-
"/reference": "/reference/get-current-user",
14-
15-
"/tutorials/getting-started": "/getting-started",
16-
"/tutorials/instances": "/instances",
17-
"/tutorials/tags": "/tags",
18-
"/tutorials/contribute-api": "/contributing",
19-
"/tutorials/contribute-website": "/contributing",
20-
"/tutorials/websocket": "/websocket",
21-
"/tutorials/:path*": "/",
22-
23-
"/csharp": "/dotnet",
24-
"/typescript": "/javascript",
25-
"/sdk/:path*": "/:path*",
26-
27-
"/specification/openapi.:format": "/openapi.:format",
28-
"/openapi.:format": "https://github.com/vrchatapi/specification/releases/latest/download/openapi.:format",
29-
30-
// "/": "/getting-started",
31-
"/getting-started": "/",
32-
33-
"/discord": "https://discord.gg/qjZE9C9fkB",
34-
};
35-
365
/** @type {import('next').NextConfig} */
376
const config = {
38-
reactStrictMode: true,
39-
serverExternalPackages: [
40-
"typescript",
41-
"twoslash",
42-
"oxc-transform"
43-
],
44-
eslint: {
45-
ignoreDuringBuilds: true,
46-
},
47-
typescript: {
48-
ignoreBuildErrors: true,
49-
},
50-
images: {
51-
remotePatterns: [
52-
new URL("https://i.imgur.com/*")
53-
]
54-
},
55-
rewrites: async () => [
56-
{
57-
source: "/:path*",
58-
destination: "/docs/:path*",
59-
},
60-
],
61-
redirects: async () => Object
62-
.entries(redirects)
63-
.map(([source, destination]) => ({
64-
source,
65-
destination,
66-
permanent: false,
67-
})),
7+
serverExternalPackages: ['typescript', 'twoslash', "@takumi-rs/image-response"],
8+
output: "export",
9+
reactStrictMode: true,
10+
experimental: {
11+
cpus: 2,
12+
},
13+
typescript: {
14+
ignoreBuildErrors: true,
15+
},
16+
images: {
17+
unoptimized: true
18+
},
6819
};
6920

7021
export default withMDX(config);

0 commit comments

Comments
 (0)