Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
fix name
istarkov4297dcdca00c
diff --git a/packages/asset-uploader/src/utils/get-asset-path.ts b/packages/asset-uploader/src/utils/get-asset-path.tsindex 54b8bb64fd..aefd4077e9 100644--- a/packages/asset-uploader/src/utils/get-asset-path.ts+++ b/packages/asset-uploader/src/utils/get-asset-path.ts@@ -8,13 +8,13 @@ const fsEnv = FsEnv.parse(process.env);export const getAssetPath = (asset: DbAsset) => {if (asset.location === Location.FS) {const splitPath = fsEnv.FILE_UPLOAD_PATH.split("public");- const locUrl = new URL(+ const url = new URL(path.join("/", splitPath[splitPath.length - 1], asset.name),// Hostname here is not important"http://localhost");- return locUrl.pathname;+ return url.pathname;}if (asset.location === Location.REMOTE && s3Envs.success) {