mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-25 15:41:31 +03:00
.. | ||
public | ||
scripts | ||
src | ||
.env.local.template | ||
.eslintrc | ||
next-env.d.ts | ||
next.config.mjs | ||
package.json | ||
preset.config.mjs | ||
project.json | ||
README.md | ||
sentry.client.config.ts | ||
sentry.edge.config.ts | ||
sentry.properties | ||
sentry.server.config.ts | ||
server.mts | ||
tsconfig.json | ||
tsconfig.node.json |
AFFiNE Web
This is the web application for AFFiNE. It is a React application that uses the Next.js framework.
Getting Started
First, run the development server:
pnpm run dev
Open http://localhost:8080 with your browser to see the result.
You can start editing the page by modifying src/pages/workspace/[workspaceId]/all.tsx
. The page auto-updates as you edit the file.
For more information on Next.js, take a look at the Next.js Documentation.
Build Presets
preset.config.mjs
contains the build presets for the application. The presets are used to configure the build process for different environments. The presets are:
enableBroadcastChannelProvider
: Enables the Broadcast Channel provider for the application. This is used to communicate between local browser tabs.enableDebugPage
: Enables the debug page for the application. This is used for debugging purposes.
BlockSuite Integration
Set LOCAL_BLOCK_SUITE=/path/to/blocksuite
to use a local version of BlockSuite. This is useful for development.