AFFiNE/apps/web
2023-04-27 16:46:08 -05:00
..
public feat: update favicon & manifest (#1889) 2023-04-11 23:52:38 -05:00
scripts fix: trim git info (#1746) 2023-03-29 17:56:44 -05:00
src feat(component): init app sidebar (#2135) 2023-04-27 16:46:08 -05:00
.env.local.template feat: support disable legacy cloud (#2006) 2023-04-18 02:23:00 -05:00
.eslintrc
next-env.d.ts
next.config.mjs feat: init @toeverything/theme (#2136) 2023-04-25 18:44:17 -05:00
package.json chore: bump version (#2162) 2023-04-27 00:23:34 -05:00
preset.config.mjs feat: improve build config (#2115) 2023-04-24 22:33:09 -05:00
README.md build: remove unused config (#1990) 2023-04-17 23:11:46 -05:00
sentry.client.config.ts build: reduce the sample rate to 0.1 2023-04-23 23:40:59 -05:00
sentry.edge.config.ts build: reduce the sample rate to 0.1 2023-04-23 23:40:59 -05:00
sentry.properties
sentry.server.config.ts build: reduce the sample rate to 0.1 2023-04-23 23:40:59 -05:00
tsconfig.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.