This is a partial reimplementation of the original Excalidraw JSON storage server without dependencies on Google Application Engine.
This is a Next.js project bootstrapped with create-next-app
.
- Amazon S3-compatible storage
- Node.js 10.13 or later
First, run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying pages/index.js
. The page auto-updates as you edit the file.
This server can be configured using the environment variables below.
The S3 access key ID.
The S3 secret access key.
The S3 endpoint URI to send requests to. For example, https://storage.googleapis.com
or https://storage.yandexcloud.net
.
Default: excalidraw
The S3 bucket name.
Default: false
Whether to force path-style URLs for S3 objects. Although path-style URLs are deprecated, some S3 storage implementations only work with path-style addressing (for example, MinIO).
A comma-separated list of values used to configure the Access-Control-Allow-Origin
header using cors
middleware. For example, https://excalidraw.com
or https://excalidraw.com,https://excalidraw-team.now.sh
. For convenience, http://localhost:
is always allowed.
Regular expression patterns are also supported via regex:
prefix. For example, regex:example\.com\$
will be converted to /example\.com$/
.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.