refactor: init package @affine/workspace (#1661)

This commit is contained in:
Himself65
2023-03-23 11:17:38 -05:00
committed by GitHub
parent 84d27e939d
commit 69721f2a61
44 changed files with 952 additions and 236 deletions

View File

@@ -12,7 +12,7 @@ let prefixUrl = '/';
if (typeof window === 'undefined') {
// SSR
const serverAPI = config.serverAPI;
if (isValidIPAddress(serverAPI)) {
if (isValidIPAddress(serverAPI.split(':')[0])) {
// This is for Server side rendering support
prefixUrl = new URL('http://' + config.serverAPI + '/').origin;
} else {