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
// Generated only for projects whose SSG build uses an Assets query.
// @ts-expect-error The CLI template is typechecked before the generated module exists.
import { createPublishedAssetResourceFetch } from "./__generated__/$resources.asset-query-vendor.js";
export const createSsgAssetResourceFetch = ({
deploymentId,
artifact,
runtimeAssets,
}: {
deploymentId: string;
artifact: unknown;
runtimeAssets: Record<
string,
{ url: string; contentRef?: string; width?: number; height?: number }
>;
}) =>
createPublishedAssetResourceFetch({
baseUrl: "https://webstudio.local",
deploymentId,
artifact,
automationToken:
typeof process === "undefined"
? undefined
: process.env.WEBSTUDIO_AUTOMATION_TOKEN,
runtimeAssets,
});