diff --git a/.changeset/rotten-seas-serve.md b/.changeset/rotten-seas-serve.md new file mode 100644 index 00000000..13539b02 --- /dev/null +++ b/.changeset/rotten-seas-serve.md @@ -0,0 +1,5 @@ +--- +"outstatic": patch +--- + +fix: undefined process.env.OST_REPO_OWNER diff --git a/packages/outstatic/src/client/pages/collections.tsx b/packages/outstatic/src/client/pages/collections.tsx index 03e0305f..94474c58 100644 --- a/packages/outstatic/src/client/pages/collections.tsx +++ b/packages/outstatic/src/client/pages/collections.tsx @@ -9,6 +9,7 @@ import useOid from '../../utils/hooks/useOid' export default function Collections() { const { + repoOwner, collections, session, repoSlug, @@ -26,7 +27,7 @@ export default function Collections() { const deleteCollection = async (collection: string) => { try { const oid = await fetchOid() - const owner = process.env.OST_REPO_OWNER || session?.user?.login || '' + const owner = repoOwner || session?.user?.login || '' const commitInput = collectionCommitInput({ owner,