mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-22 19:11:32 +03:00
feat: self-hosted provider
This commit is contained in:
parent
f01c6e12d2
commit
9b278d29d5
9
.vscode/settings.json
vendored
9
.vscode/settings.json
vendored
@ -3,5 +3,12 @@
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||
"editor.formatOnSave": true,
|
||||
"editor.formatOnSaveMode": "file",
|
||||
"cSpell.words": ["blocksuite", "datacenter", "livedemo", "pnpm", "testid"]
|
||||
"cSpell.words": [
|
||||
"blocksuite",
|
||||
"datacenter",
|
||||
"livedemo",
|
||||
"pnpm",
|
||||
"selfhosted",
|
||||
"testid"
|
||||
]
|
||||
}
|
||||
|
@ -46,6 +46,10 @@ const nextConfig = {
|
||||
source: '/api/:path*',
|
||||
destination: destinationAC,
|
||||
},
|
||||
{
|
||||
source: '/collaboration/:path*',
|
||||
destination: 'http://localhost:3000/collaboration/:path*',
|
||||
},
|
||||
];
|
||||
} else {
|
||||
let destinationStandard = 'http://100.77.180.48:11001/api/:path*';
|
||||
@ -58,6 +62,10 @@ const nextConfig = {
|
||||
source: '/api/:path*',
|
||||
destination: destinationStandard,
|
||||
},
|
||||
{
|
||||
source: '/collaboration/:path*',
|
||||
destination: 'http://localhost:3000/collaboration/:path*',
|
||||
},
|
||||
];
|
||||
}
|
||||
},
|
||||
|
@ -18,7 +18,7 @@ const DynamicBlocksuite = ({
|
||||
const openWorkspace: LoadWorkspaceHandler = async (workspaceId: string) => {
|
||||
if (workspaceId) {
|
||||
const dc = await getDataCenter();
|
||||
return dc.load(workspaceId, { providerId: 'affine' });
|
||||
return dc.load(workspaceId, { providerId: 'selfhosted' });
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user