Skip to content

Commit

Permalink
fix: undefined process.env.OST_REPO_OWNER (#163)
Browse files Browse the repository at this point in the history
Co-authored-by: Andre Vitorio <andre@vitorio.net>
  • Loading branch information
TcMits and avitorio committed Nov 27, 2023
1 parent 98696b2 commit 61351df
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/rotten-seas-serve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"outstatic": patch
---

fix: undefined process.env.OST_REPO_OWNER
3 changes: 2 additions & 1 deletion packages/outstatic/src/client/pages/collections.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import useOid from '../../utils/hooks/useOid'

export default function Collections() {
const {
repoOwner,
collections,
session,
repoSlug,
Expand All @@ -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,
Expand Down

0 comments on commit 61351df

Please sign in to comment.