Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: undefined process.env.OST_REPO_OWNER #163

Merged
merged 2 commits into from
Nov 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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